473,327 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

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

Nov 12 '05 #1
1 28428
Pekka Henttonen wrote:

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?


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
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tom Urbanowicz | last post by:
I have a table with 100+ columns, for which I'm trying to retrieve only 1 specific record. For this single record, I do not know which of the columns are NULL, and which are populated. I would...
1
by: xixi | last post by:
we are using db2 udb v8.1 , from db2 command window, how can i see the value which has null in it? cause right now i only see it is blank, not knowing actually it is a null value, i can only know...
4
by: Bob Rock | last post by:
Hello, is there a way to dynamically query if a callback delegate has been tied to an event to avoid raising the event if none have been tied or raise an exception if proper for the situation???...
4
by: Peter | last post by:
Hi, I can detect which ListviewItem has been selected like the code below, but I can't detect which subItem has been selected. Any help will be great appreciated. Private Sub...
7
by: andreas | last post by:
Hello, I have a problem with iterators in a fairly complex polygonal mesh data structure which is implemented using lists of geometric entities. However, the problem in itself is fairly simple:...
7
by: **Developer** | last post by:
Public Shared Sub junk... Dim PF2 As Wnd.PARAFORMAT2 PF2.cbSize = Marshal.SizeOf(PF2) 'ERROR HERE PF2.dwMask = Wnd.PFM_LINESPACING ....snip
4
by: Eric Layman | last post by:
Hi everyone, Im puzzled by a NULL behaviour in SQL 2000 server. There is a column in the table that does not allow NULL. During data mining, the staff noted that, for that particular column,...
3
by: BD | last post by:
Developing C# app using VS 05 to connect to remote SQL Server 05. One form has a textbox bound to datetime column. When I delete the date in the textbox, app locks. I was using Access 2003 to...
2
by: 3ALAYA | last post by:
Hi .. Iam trying to do so >> Insert into LOANS (LOAN_CODE,LOAN_BALANCE,LENDED_TO,LONED_BY,INTREST_PERCENTAGE,BR_CODE) Values (200,100000,'ALYA','BUHAIRA',2,101) this is the table DESC ..
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.