dbTalk Databases Forums  

Change a existing column to become Indentity (Auto Increment) column

comp.databases comp.databases


Discuss Change a existing column to become Indentity (Auto Increment) column in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chen Fock Siong
 
Posts: n/a

Default Change a existing column to become Indentity (Auto Increment) column - 06-07-2004 , 08:33 PM






Dear Experts,

How use SQL scripts to change an existing column to become an Identity
column (auto increment) ??
eg. Current column : ID1 BigInt --> ID1 BigInt Identity(1,1)

I want back the values of the existing column after change to identity
column.

Is there any other way instead of create a Temp table, move data over,
drop an existing table and re-create back the table, and move back the
data ??

Thanks.

Regards,
Chen Fock Siong
08-Jun-2004

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.