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

Importing .CSV using DTS error

Status
Not open for further replies.

dndaughtery

Programmer
Jan 25, 2006
67
US
I have a DTS package that is to import the data from a .csv file into a table in my database. I have set the columns to the specific fields but I get an error when I try run the DTS stating that the primary key field doesn't allow nulls. I looked at the design of the table and the primary key field is set as an identity and increments by 1. Why am I getting this error?
 
insert the .csv records into a temporary table.
then use a standard insert into ... select from to insert into the real table. This should solve your problem.

Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
Remove the transformation that insertes into the identity column.

JIm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top