SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 ENABLING IDENTITY_INSERT
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sunsanvin
Flowing Fount of Yak Knowledge

India
1265 Posts

Posted - 09/08/2008 :  05:52:26  Show Profile  Send sunsanvin a Yahoo! Message  Reply with Quote
Dear All,
i've a table with around 6 lakhs records. is it possible to enable the identity property to the table now?

how to dts the table to another database which is in the same server with the same relations and the identity? please help me

Arnav
Even you learn 1%, Learn it with 100% confidence.

visakh16
Very Important crosS Applying yaK Herder

India
52249 Posts

Posted - 09/08/2008 :  13:54:58  Show Profile  Reply with Quote
do you mean enabling identity insert on id column or modifying a column to be identity? former is possible but for you dont have direct method for latter. you need to create a new id column, copy current values of current column and then drop current one.
you dont need dts to transfer table to another db of same server. just script out table and constraints,.. from sql enterprise manager if 2000 or sql mgmnt studio if sql 2005 and apply script in other db. then use INSERT...SELECT to populate the data from current table to newly created one.
Go to Top of Page

sunsanvin
Flowing Fount of Yak Knowledge

India
1265 Posts

Posted - 09/09/2008 :  03:09:18  Show Profile  Send sunsanvin a Yahoo! Message  Reply with Quote
thank you very much visakh i've done in the same way

Arnav
Even you learn 1%, Learn it with 100% confidence.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000