Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle ODBC Driver - Error Trap

Status
Not open for further replies.

subhavs

Programmer
Nov 27, 2000
54
US
Hello,

I am using Oracle ODBC Driver inside a VB App.

I need to time my SQL queries and if they take more than 2 minutes, I need to cancel the query.

The commandtimeout property of the ADO control works just fine. My problem is that ODBC displays a message that 'User requested cancel of current operation'.

Even though I have a error handler, ODBC displays this message and then returns control to the error handler.

The ODBC message is kinda misleading because the user did not cancel the operation, it was a timeout.

Does anybody know how I can prevent the ODBC from doing this ?

Thanks in advance for the help,

- Subha :) Nothing is impossible, even the word impossible says I'm possible.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top