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

Missing Column Name in "NOT NULL" Error Message

Status
Not open for further replies.

Spab23

Programmer
Jul 22, 2003
43
CA
I have a program that is attempting to do an insert to a DB2 table. When it fails, I get the message:

[IBM][CLI Driver][DB2] SQL0407N Assignment of a NULL value to a NOT NULL column "" is not allowed. SQLSTATE=23502

My problem is I want to know what's in the ""! Does anyone out there know how I can get this info?

Thanks!
 
You should send us the SQL;the insert statement of yours.

Salih Sipahi
Software Engineer.
City of Istanbul Turkey
s.sipahi@sahinlerholding.com.tr
turkey_clr.gif
 
Spab23,
Check your sql. If you are fully qualifying all the columns, then check that you have got them in the correct order. Print out a copy of the table layout and the sql and compare the two. You should find your answer that way.
Marc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top