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 > Error No 3712; Operation has been cancelled by the user

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-25-07, 14:19
JoeHarv JoeHarv is offline
Registered User
 
Join Date: Jan 2007
Posts: 2
Error No 3712; Operation has been cancelled by the user

This error is returned when a VB 6.0 application using ODBC (MDAC 2.8) attempts to open a DB2 (version 8.1) ADO recordset with a somewhat complex SQL. Less complex SQL in the rest of the app runs fine. The error text indicates that the user initiated a cancel but it appears that the actual error is being masked by ODBC.

This appears to be contention related since the error occurs about 80% of the time and not at all during hours that the system is less busy. The SQL runs without error when submitted in either SPUFI or QMF.

The error started occuring in a test environment when it was upgraded to DB2 v8.1.

I would like to a) determine what the actual error is and b) stop it from occuring.

Thanks,
Joe

Last edited by JoeHarv; 01-25-07 at 15:12.
Reply With Quote
  #2 (permalink)  
Old 01-25-07, 17:43
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Assuming that ADO builds on CLI (aka ODBC), you could turn on a CLI trace.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 01-26-07, 14:57
JoeHarv JoeHarv is offline
Registered User
 
Join Date: Jan 2007
Posts: 2
Knut, this is 6.0 VB which is in the pre-CLI world, but when I perform the trace, the last command that I run prior to the error is "rs.Open". The next line that processes is in error processing. Thank you for taking the time to offer help!
Reply With Quote
  #4 (permalink)  
Old 01-26-07, 16:26
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
I'd say it is the ADO timing out. I don't know much about ADO but there should be a timeout setting somewhere. "rs.Open" is when the result set is being materialized, which may take a long time, and ADO cancels the operation.
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