Wednesday, January 13, 2010

SET IDENTITY_INSERT setting

You cannot enter a value for an identity column when executing an INSERT or UPDATE statement. You can overcome this limitation by issuing The SET IDENTITY_INSERT ON command in the current connection.
Let's see this example:


2 comments:

Unknown said...

What about Update

Fadi Ahmad Abdulwahab said...

yes, it's same as insert statement

good luck..