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
Public Desktop Icons not showing in RDP sessions
How many keywords is too many in the meta data?
Change primary smtp addresses for 29 users using powershell for exchange
Best AV for 2008 R2 64bit
Difference between Icefaces,myfaces,richfaces
in JSF?
Users experiencing network connectivity issues on Multihomed Windows Server 2008 DC
Add Property to asp.net user control to make reusable
Firefox css border on inside of div when embedding Flash with SWFObject, why?
DHCP White list
service restart after logrotate