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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing tables - identity columns lost

Status
Not open for further replies.

amberlynn

Programmer
Dec 18, 2003
502
CA
Hello,
When I import tables from one SQL Server database to another, all my Primary Key fields that are set to Identity columns, are no longer set to Identity columns.
I have to go in manually to every table and reset this.
Is there a way around this??
Thanks!
Amber
 
How you importing data?

Borislav Borissov
VFP9 SP1, SQL Server 2000/2005.
MVP VFP
 
If you are using the wizard it will drop your identity column,

- Paul
- If at first you don't succeed, find out if the loser gets anything.
 
I am using the wizard.
Is there a better way to do it?
 
If the tables are new tables in the target database, then generate an sql script for the source for desired tables, run it on the target database, then import the tables with identity insert on.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top