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 > DB2 SQL error: SQLCODE: -104, SQLSTATE: 42601, SQLERRMC:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-19-05, 23:21
sandhyab sandhyab is offline
Registered User
 
Join Date: Jan 2005
Posts: 11
Question DB2 SQL error: SQLCODE: -104, SQLSTATE: 42601, SQLERRMC:

DB2 SQL error: SQLCODE: -104, SQLSTATE: 42601, SQLERRMC:

Iam getting this errror while using jcc connectivity.All my sql statements are simple select statements.Can you please tell what i shd do to solve this error?

Thanks in Advance
San
Reply With Quote
  #2 (permalink)  
Old 01-19-05, 23:39
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
What does the Messages and Codes manual say about this? You can download the manuals from the IBM site (see Useful DB2 Stuff thread).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 01-20-05, 00:11
sandhyab sandhyab is offline
Registered User
 
Join Date: Jan 2005
Posts: 11
Thanks for your reply.
I checked the sql error in manuals but i didnot understand it.

I am getting the following error on this sql statement:
Select POLNUM,ACTION,MEMONUM FROM POLMEMO WHERE POLNUM='12239598 'AND MEMONUM = (SELECT MAX(MEMONUM) FROM POLMEMO WHERE POLNUM='12239598 ');

Exception in ROLE OR POLMASTN dbconnB2 SQL error: SQLCODE: -104, SQLSTATE: 42601, SQLERRMC: ;;POLNUM='12239598 ');END-OF-STATEMENT

Any suggestions would be appreciated.
Reply With Quote
  #4 (permalink)  
Old 01-20-05, 00:15
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I don't know anything about jcc, but it looks like there may be a problem with the statement termination character.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 01-20-05, 01:28
sandhyab sandhyab is offline
Registered User
 
Join Date: Jan 2005
Posts: 11
Hi,
Thanks, that error was indeed due to the last character.It was running fine using jdbc. But with jcc it was showing error.

I got another error:
Exception in dbconnB2 SQL error: SQLCODE: -805, SQLSTATE: 51002, SQLERRMC: NULLID.SYSLH203 0X5359534C564C3031

Any suggestions?
Reply With Quote
  #6 (permalink)  
Old 01-20-05, 05:24
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
IIRC, this problem was fixed in FP3 .. What fixpak are you on ??
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #7 (permalink)  
Old 01-20-05, 17:52
sandhyab sandhyab is offline
Registered User
 
Join Date: Jan 2005
Posts: 11
Can you tell me how do i find out what fixpack iam on?
Reply With Quote
  #8 (permalink)  
Old 01-20-05, 17:59
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
db2level (from the command line).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #9 (permalink)  
Old 01-20-05, 18:14
sandhyab sandhyab is offline
Registered User
 
Join Date: Jan 2005
Posts: 11
Thanks , fixpack iam on is DB2 SDK 8.1.5
Reply With Quote
  #10 (permalink)  
Old 01-20-05, 19:36
sandhyab sandhyab is offline
Registered User
 
Join Date: Jan 2005
Posts: 11
Sorry the fixpack iam on is 5.

DB21085I Instance "DB2" uses "32" bits and DB2 code release "SQL08015" with level identifier "02060106".
Informational tokens are "DB2 v8.1.5.449", "s040212", "WR21334", and FixPak
"5".
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