I am trying to update the Identity column, and it does not exists in any relational table as of now.
If I run the SQL statement as shown:
SET IDENTITY_INSERT Client..dt_Domain ON;
UPDATE Client..dt_Domain
SET DomainID = 1
WHERE DomainID = 2 AND ClientID = 3
SET IDENTITY_INSERT Client..dt_Domain OFF;
I get the following error:
Msg 8102, Level 16, State 1, Line 6
Cannot update identity column 'DomainID'.