Home » Infrastructure » Windows » CommandTimeout does not work
CommandTimeout does not work [message #100983] Thu, 11 March 2004 03:11 Go to next message
Ammara Khan
Messages: 1
Registered: March 2004
Junior Member
We are having the issue getting the Commandtimout to work for a ADO command.  We have long running queries and want to stop the query if it takes more then x secs.

Here is the code snippet I have:

strConn = "Data Source=" + datbasehere + ";User Id=" + userIDhere + ";Password=" + passwordhere + ";"

strConn = strConn + "Provider=oraoledb.oracle";

var strConnection = Server.CreateObject("ADODB.Connection");

strConnection.Open(strConn);

    var strCommand = Server.CreateObject("ADODB.Command");
    strCommand.ActiveConnection = strConnection;
    sql_str = sql_str.replace(/'/g, "'");
    strCommand.CommandText = sql_str;
    strCommand.CommandTimeout= 10;
 
   var rsQuery = Server.CreateObject("ADODB.Recordset");
   rsQuery = strCommand.execute();

Has anyone seen a similar issue?
Re: CommandTimeout does not work [message #101187 is a reply to message #100983] Wed, 09 June 2004 07:36 Go to previous message
Erlendur
Messages: 1
Registered: June 2004
Junior Member
Hi Ammara,

Any luck solving this problem?
I´m experiencing the same problem.

With regards, Erlendur
Previous Topic: Oracle 8i on Windows 2000 vs NT
Next Topic: INSTALLATION PROBLEM FOR ORACLE 8i AND DEVELOPER 6i IN PENTIUM 4
Goto Forum:
  


Current Time: Thu Apr 18 23:37:08 CDT 2024