Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Identity column to table with five million records

Status
Not open for further replies.

vechalapu

Programmer
May 2, 2001
58
US
Hi,

I need to add an identity column to a table with 5 million records. When I tried to add, transaction log is filling up as well as taking for ever. Is there any other I can accomplish this task without filling up log or in less time?

Thanking You,
 
You could copy the table then drop the old one, then create the new table schema the just repopulate with old values but I think this is essencially what SQL does on the fly when you add your identity column. foo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top