Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 identity specification

Author  Topic 

lemondash
Posting Yak Master

159 Posts

Posted - 2009-07-03 : 13:27:52
I have just dts wizard a table acroos from development to production but the table had a Identity (1,1) on it. It didn't keep the Identity on the table. Is there any way of added this afterwards and with out losing the values in the Id colunm.

Regards

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-07-03 : 14:15:43
Yes. Add IDENTITY attribute in SSMS.
SSMS will recreate the table for you without loosing existing values.



Microsoft SQL Server MVP

N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-07-05 : 05:23:11
you've an option called enable identity insert in export import wizard for preserving id values while exporting
Go to Top of Page
   

- Advertisement -