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 query help
Facing issues in OCS federation..
Can you tell what Server a Backup Exec agent was pashed out from
DHCP Client wont AutoStart
How to export data from Sql server to text or xml file using SSIS
Script to enable folder auditing
SQL Substr Order
move a VB.Net exe file
SharePoint - single user can't access Rich Text Editor
asp.net SQL Filestream access is denied