Quick question. How to make an existing column as identity column?
I have a table (A) containing duplicate records and duplicate unique key, and this unique key is an identity column (ok ok, don't ask me how I even start with this junk design... my ex-co-worker did this), I want to make it into a new table (B) without duplicate record but still retain the identity column property.
For example, table A contains:
Key Name SSN
------------------------------------
1 Bob 123456789
1 Bob 123456789
21 John 111222333
21 John 111222333
Here, Key column is an identity column.
I appreciate any help. Thanx in advance.
I have a table (A) containing duplicate records and duplicate unique key, and this unique key is an identity column (ok ok, don't ask me how I even start with this junk design... my ex-co-worker did this), I want to make it into a new table (B) without duplicate record but still retain the identity column property.
For example, table A contains:
Key Name SSN
------------------------------------
1 Bob 123456789
1 Bob 123456789
21 John 111222333
21 John 111222333
Here, Key column is an identity column.
I appreciate any help. Thanx in advance.