is there anyway to add a primary autonumber key to an already existing database table

Posted by oo on Stack Overflow See other posts from Stack Overflow or by oo
Published on 2010-04-04T03:24:21Z Indexed on 2010/04/04 3:33 UTC
Read the original article Hit count: 316

Filed under:
|

i have inherited a database application from someone else and there are a few tables that dont have any primary keys. I want to add a new column into an already existing table and have it autonumber (starting from 1). how would i go about doing this?

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about database-design