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 > String Constant not valid error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-09-09, 14:04
ccalle ccalle is offline
Registered User
 
Join Date: Mar 2009
Posts: 1
String Constant not valid error

Hi everyone I got this error on my procedure and can't figure out the problem.

Create stored procedure returns SQLCODE: -105, SQLSTATE: 42604.

DWH.AMJ_CRMCONTACTEXTRACT: 182: The string constant beginning with "B' where Revenue >= '" is not valid.

The string constant beginning with "B' where Revenue >= '" is not valid.

Not quite sure what's causing this issue, any help or idea where to start would be highly appreciated! Thank you
Reply With Quote
  #2 (permalink)  
Old 04-09-09, 15:14
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You wouldn't mind posting the code for the SP? Also supply your Db2 version and OS.

Andy
Reply With Quote
  #3 (permalink)  
Old 04-09-09, 16:32
tonkuma tonkuma is offline
Registered User
 
Join Date: Feb 2008
Location: Japan
Posts: 2,193
Perhaps, you forgot some quotation marks("'") or put extra quotation marks.
This must be one of popular programming error which made by most peoples in many program codes not only on SQL(including me from about 40 years ago of PL/I programs).
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