Quantcast
Channel: Questions in topic: "ssis"
Viewing all articles
Browse latest Browse all 813

Increment primary key on SSID import?

$
0
0
I currently have a database that has a user profile table with a primary key of PatientID that auto-increments when a new patient is added to the table. I am importing data via SSIS from a similar table in another database that has it's own PatientIDs and some of those values overlap the PatientIDs in my destination table. I would like to ignore the PatientIDs from my source table, and have new PatientIDs created in my destination table that are a continuation of the PatientIDs currently there. For example: Source PatientIDs: 100 101 102 103 Destination PatientIDs: 10 11 12 13 AFTER IMPORT Destination PatientIDs: 10 11 12 13 14 15 16 17 How do I do this?

Viewing all articles
Browse latest Browse all 813

Trending Articles