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

SQL Import from Excel

Status
Not open for further replies.

chester27

IS-IT--Management
Apr 29, 2002
208
GB
I am trying to import data from Excel to a table in an SQL database. One of the column's is a PriKey with a unique number. How do I get the import from Excel using SSIS to auto generate the next number in the column, so that every import of data has a unique number per row inserted.
 
If the primary key column is an Identity column, then do nothing. Don't map a source column to it. It will increment on its own.
 
Sorted, I had let the enable identity update in the mapping on after removing the column for importing. Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top