Pages

Mar 5, 2018

Error Message: The row values(s) updated or deleted either do not make the row unique or they alter multiple rows(2 rows)

No row was updated

The data in row 2 was not committed.
Error Message: The row values(s) updated or deleted either do not make the row unique or they alter multiple rows(2 rows).


Hi There, I am trying to update the date column for one of the column and getting the above error. When we edit the column in SSMS we can modify only one column at a time as more than one column is unique it is not finishing successfully.

Workaround is to use Update table statement.

Make sure you use select statement to check the number of records your update statement is going to modify.



BEGIN TRAN

update [dbo].[TestRates]

set Conversion_Date='2018-03-04' where ToCurrency='AUD'

and Conversion_Date is null

ROLLBACK TRAN
COMMIT TRAN

2 comments: