當我嘗試更新我的客戶表,它是鏈接服務器上,從我的MSSQL服務器上的程序,我得到這個錯誤:Eror鏈接服務器上更新MySQL表時,從MSSQL服務器
OLE DB provider "MSDASQL" for linked server "PRESTA" returned message "Row cannot be located for updating. Some values may have been changed since it was last read.".
Msg 7343, Level 16, State 4, Line 1
The OLE DB provider "MSDASQL" for linked server "PRESTA" could not UPDATE table "[PRESTA].. [prs_customer]". The rowset was using optimistic concurrency and the value of a column has been changed after the containing row was last fetched or resynchronized.
我我100%肯定,我試圖把我的客戶表的生日列中的值是不一樣的,因爲這是已經在它的價值:
UPDATE PRESTA...prs_customer
SET birthday = @birthday
WHERE id_customer = @id_customer
此錯誤是隻表示,因爲該值已經在生日欄是:「0000-00-00」,而不是空。當我直接在數據庫中更改爲實際NULL時,我的過程正常工作,並且不會給出任何錯誤。
另外,兩個值都是DATE類型,具有相同的格式,所以這不是問題。
我對此感到莫名其妙,所以如果有人請詳細說明一下?