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!

Why do I loose PK and Identity when I DTS a table?

Status
Not open for further replies.

meckeard

Programmer
Aug 17, 2001
619
US
All,

Whenever I use DTS to copy a table from my local server to a remote one, my PK/Identity fields loose the PK and Identity setting.

Anyone know what I can do to prevent this from happening?

Thanks,
Mark
 
Edit the transformations and tell it not to drop and recreate the table. You want to append to the already existing table.

If you are creating a new table, you'll need to add code after the fact to add this info in. DTS doesn't copy it across.

Denny

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(My very old site)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top