Hi, I know how to do this and moreover this has been asked by many peoples in STACK OVER as well as bunch & bunch of stuffs are available in the net.
However, while googling, I came across something interesting (at least for me) adding IDENTITY to existing column
The solution to the above question (obtained from that site, at the bottom end of the page) is like
sp_configure 'allow update', 1
go
reconfigure with override
go
update syscolumns set colstat = 1
where id = object_id('table1') and name = 'ID'
go
exec sp_configure 'allow update', 0
go
reconfigure with override
go
So I gave a shot with the appropriate table and column names of mine and found the following
Configuration option 'allow updates' changed from 1 to 1. Run the RECONFIGURE statement to install.
Msg 259, Level 16, State 1, Line 1
Ad hoc updates to system catalogs are not allowed.
Configuration option 'allow updates' changed from 1 to 0. Run the RECONFIGURE statement to install.
What I am doing wrong?
Please help