Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 09:02 AM
Pekka Henttonen
Guest
 
Posts: n/a
Default How can I know to which column a null value has been assigned? (SQL0407N)


For some reason SQL0407N error messages never reveal the name of the column
to which a NULL value has been assigned. Here is an example:

SQL0407N Assignment of a NULL value to a NOT NULL column "TBSPACEID=2,
TABLEID=10, COLNO=11" is not allowed

How can I find out the name of the column?

With best regards
Pekka





  #2  
Old November 12th, 2005, 09:02 AM
Knut Stolze
Guest
 
Posts: n/a
Default Re: How can I know to which column a null value has been assigned? (SQL0407N)

Pekka Henttonen wrote:
[color=blue]
>
> For some reason SQL0407N error messages never reveal the name of the
> column to which a NULL value has been assigned. Here is an example:
>
> SQL0407N Assignment of a NULL value to a NOT NULL column "TBSPACEID=2,
> TABLEID=10, COLNO=11" is not allowed
>
> How can I find out the name of the column?[/color]

SELECT tabschema, tabname, colname
FROM syscat.columns
WHERE colno = ... AND
( tabschema, tabname ) IN
( SELECT tabschem, tabname
FROM syscat.tables
WHERE tbspaceid = ... AND
tableid = ... )


--
Knut Stolze
Information Integration
IBM Germany / University of Jena
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,248 network members.