Microsoft
Software
Hardware
Network
Question : Updating an identity column
I have an ms sql server database table, with an identity column. What I need to do is to turn off identity and the update all rows then turn the identity back on. The column is also the primary key. can anyone assist?
Answer : Updating an identity column
Use SET IDENTITY_INSERT to allow updates/inserts to the identity column.
set identity_insert tbl on;
update tbl set idcol = somenewformula;
set identity_insert tbl off;
Random Solutions
SQL
Replace apostrophes in all Session Variables in C#?
how to prove power surge damage
Drupal Newsletter - SimpleNews settings
Intel Remote Monitoring Module
java servlet to call class method
what is the best linux distro and ide for web programming (PHP) ?
Problems with accessing the Server "H drives" for users accounts
Windows 2008R2 static ports for ntds/rpc/ntfrs
How to repair a dell e171fpb monitor