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
.net Click Once With Silent Install
SSRS 2008 ReportViewer1 control not maximized
Flag duplicate record
Exchange 2010 inbound attachment size limit
ORA: 6533 Subscript out of range
C# Creating Plugins
Apache AllowEncodedSlashes Not Working
Very slow file copy to external Western Digital USB drive Win XP
You Tube Download Software
IM integration with Sharepoint 2010