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 > Help - SQL0519 Prepared statement S000001 in use

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-31-06, 16:21
F4Phantom F4Phantom is offline
Registered User
 
Join Date: Apr 2006
Posts: 3
Help - SQL0519 Prepared statement S000001 in use

I am also devloping software with the .NET provider and getting sporadic "SQL0519 Prepared statement S000001 in use." messages.

We use two methods to retreive data from the iSeries in our applications, either direct SQL statments or calls to pre existing RPG programs (or rather, CL programs that in turn call RPG programs).

This error only occurs when using direct SQL statements, and only on occasion. Once it has occurred, the call seems to stay blocked for about an hour and a half before working again.

Has anyone else determined what causes this issue?
Reply With Quote
  #2 (permalink)  
Old 06-05-06, 13:25
F4Phantom F4Phantom is offline
Registered User
 
Join Date: Apr 2006
Posts: 3
Does anyone else have this issue?

Could it be a resource issue with the iSeries?
Reply With Quote
  #3 (permalink)  
Old 06-05-06, 17:12
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Without knowing much about iSeries, there's a chance that the error is caused by running several client sessions concurrently. They're calling the same external program, which may be attempting to open a cursor that has already been open by that same program.
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