all groups > sql server misc > september 2003 >
You're in the

sql server misc

group:

How to set a column to be an identity column in TSQL.


How to set a column to be an identity column in TSQL. Jim Mitchell
9/16/2003 9:25:30 AM
sql server misc:
Can someone provide the syntax for setting a column to be an identity column
in a stored proceedure. When I export my database, my identity columns are
no longer identity columns.

Re: How to set a column to be an identity column in TSQL. London Developer
9/16/2003 2:45:18 PM
I don't beleive you can add an Identity property to an existing column.

You may need to create a temp table with the identity column in it, copy the
data to the temp table, drop the existing table and then rename your temp
one.


[quoted text, click to view]

AddThis Social Bookmark Button