Groups | Blog | Home
all groups > sql server dts > june 2004 >

sql server dts : "Identity column does not allow nulls"


dan
6/30/2004 8:15:02 AM
SQL Server 2000 on Windows XP.
I try to copy data from an Excel file to a table using a DTS Transformation
Task.

The PK of the table is CompanyID, declared int and identity.
In Transform Data Task Properties | Options, "Enable identity insert" is
checked.
However, the transformation fails with the message: "Cannot insert the value
NULL into column 'CompanyID'; column does not allow nulls. Insert fails".

What should I do?
Thanks, Dan


Allan Mitchell
6/30/2004 9:19:45 AM
There is an article here that will explain things

Problems With IDENTITY() and the DataPump task.
(http://www.sqldts.com/default.aspx?293)

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org
[quoted text, click to view]

dan
6/30/2004 11:40:03 AM
Bless you!



[quoted text, click to view]

AddThis Social Bookmark Button