If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > SQL0404N A string in the UPDATE or INSERT statement is too long for column

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-27-03, 18:49
mixxalot mixxalot is offline
Registered User
 
Join Date: May 2003
Posts: 369
SQL0404N A string in the UPDATE or INSERT statement is too long for column

We keep getting the error message for our DB2 UDB 7.2 database on AIX 5.2L (both are 32bit versions) SQL0404N A string in the UPDATE or INSERT statement is too long for column when we try to run the following SQL DB2 statement:

INSERT INTO table (Col1, Col2, TableName, RecordCount ) VALUES( {d '2003-10-24'}, '2003-10-25 17:55:05', 'CODES', 1)

Any tips on how to resolve this error in DB2? Thanks!
Reply With Quote
  #2 (permalink)  
Old 10-27-03, 19:38
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Can you post the column defintions of Col1, Col2?

I am not an expert on date or character manipulation, but what are "{" for?
Reply With Quote
  #3 (permalink)  
Old 10-28-03, 15:46
Sound Sound is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
Cool Re: SQL0404N A string in the UPDATE or INSERT statement is too long for column

We keep getting the error message for our DB2 UDB 7.2 database on AIX 5.2L (both are 32bit versions) SQL0404N A string in the UPDATE or INSERT statement is too long for column when we try to run the following SQL DB2 statement:

INSERT INTO table (Col1, Col2, TableName, RecordCount ) VALUES( {d '2003-10-24'}, '2003-10-25 17:55:05', 'CODES', 1)

Any tips on how to resolve this error in DB2? Thanks!

-------------------

Hi,

First check the column type and make sure the value you are trying to update/insert is within the limit. (For example if you have column type as SMALLINT and try to update/insert the value as 33000 then this will fail since the value allowed for smallint is 32xxx). If you have enough tablespace then this might of some help.

Good luck.

Raju
Reply With Quote
  #4 (permalink)  
Old 10-28-03, 16:30
mixxalot mixxalot is offline
Registered User
 
Join Date: May 2003
Posts: 369
thanx

think that the parser software just choked on the query. when I reset the parser it ran fine. thanks for the help

-scott
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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