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
Blackberry Enterprise Server Express, MAPI subsystem error
How do I get back into my user profile?
Replace Windows 2003 DC with a new Windows 2008 DC
Windows Routing Table Configuration
Browsing Internet and Torrent
HP EVA MPIO from Windows 2008 R2
access to css 11503 using GUI
Raid 1 Rebuild Failed - Adaptec 1210SA
Clear Move Request (moverequest) matches multiple entries
I need to stop, then re-start, a thread in a web service using IIS