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

Cannot insert the value NULL

Status
Not open for further replies.

phreakgrrrl

Technical User
Jan 30, 2003
26
US
Having issues with my shopping cart.
this is the error and the page it's on:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot insert the value NULL into column 'basketitemID', table 'paceprintscatalog.dbo.basket'; column does not allow nulls. INSERT fails.






When i look into the tables it says the value does allow nulls so i'm at a loss.. any help would be great... thank you!
 
Do you have a trigger on this table that is trying to insert values in to another table that does not allow nulls?

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Theb table is 'paceprintscatalog.dbo.basket' and the column is 'basketitemID'
Are you sure that you looked at the correct table
run this
SELECT COLUMNPROPERTY( OBJECT_ID('basket'),'basketitemID','AllowsNull')

if it returns 0 then the column does NOT allow nulls

Denis The SQL Menace
SQL blog:
Personal Blog:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top