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
how to parse this text log into another txt format
Problem getting page with CURL and PHP
Example on How to use AddPrinterDriver or AddPrinterDriverEx with C#?
phpmailer errorInfo
asp.net: how would you insert the address 'location' into this hyperlink control
ASP.NET How to get picture images to display...in a LISTVIEW?
interview questions on SSIS
Computer in VMWare has black screen with _ symbol
coins - why only side is shown
Iphone sync to Exchange 2007