Possible Duplicate:
set identity on the column
I have a table let’s say Messages with a column name Serno.
Serno keeps the serial number for each message.
However system is very old and creates this serial number using max(serno) command.
Now, I am trying to change this column to an identity but I don’t want to loose the current serial numbers for each message.
Is there a solution for this.
I already try to creatae a new identity column and copy the values from serno there but it doesn’t work.
Neither creating a new table work as database will give new serial numbers for each message and I don’t want that.
Any ideas are Welcome.
Thanks in advance
M.A
have you tried opening the table in design view, selecting your column, and setting the
IdentitySpecificationtoYes(this may take a while if you have many rows, as it internally generates a complete copy of the table)