CommandTimeout not working
CommandTimeout not working
I tried to apply a custom CommandTimeout to our Connection as described in the readme.htm file that comes with the drivers but it does not work.
Tried the following
CRSQLConnection.Params.Values['CommandTimeout'] := '3';
and also tried
CRSQLConnection.Params.Values['Command Timeout'] := '3';
both before opening the connection, but no effect. Opened a long running query which did not return before completion. Maybe 30-40 Seconds.
Delphi 6.02
Latest dbxsda drivers and sources
SQL Server 2008
Any help greatly appreciated.
Tried the following
CRSQLConnection.Params.Values['CommandTimeout'] := '3';
and also tried
CRSQLConnection.Params.Values['Command Timeout'] := '3';
both before opening the connection, but no effect. Opened a long running query which did not return before completion. Maybe 30-40 Seconds.
Delphi 6.02
Latest dbxsda drivers and sources
SQL Server 2008
Any help greatly appreciated.
To whom it may concern,
We are a paying customer of DevArt (formerly CoreLAb) since years and we are therefore expecting a certain level of support.
This is an urgent problem for us (as are the other two issues currenlty open see forum). We are using dbexpress drivers for real world applications not just for fun.
If DevArt is unable or unwilling to solve the problem, please drop a message saying that so we don't have to poll the forum every hour to see if you have kindly posted a solution or answer.
If there is another support channel that we should use, let us know.
Thanks
Martin
We are a paying customer of DevArt (formerly CoreLAb) since years and we are therefore expecting a certain level of support.
This is an urgent problem for us (as are the other two issues currenlty open see forum). We are using dbexpress drivers for real world applications not just for fun.
If DevArt is unable or unwilling to solve the problem, please drop a message saying that so we don't have to poll the forum every hour to see if you have kindly posted a solution or answer.
If there is another support channel that we should use, let us know.
Thanks
Martin
-
- Devart Team
- Posts: 925
- Joined: Thu 17 Nov 2005 10:53
-
- Devart Team
- Posts: 925
- Joined: Thu 17 Nov 2005 10:53
Ok, I see.Challenger wrote:When FetchAll is True the open operation consists of statement execution and data fetching. The CommandTimeout parameter affects statement execution and fethcing of data blocks separately. So it does not affect anything. Please consider using FetchAll = False mode.
Could you show me a snippet of code for Delphi6 that set's timeout=3 and fetchall=false just to make sure, I'm using the right way to set those two params ?
Thanks
Martin
You can use the following code:martin wrote:Could you show me a snippet of code for Delphi6 that set's timeout=3 and fetchall=false just to make sure, I'm using the right way to set those two params ?
Code: Select all
CRSQLConnection.Params.Values['CommandTimeout'] := '3';
CRSQLConnection.Params.Values['FetchAll'] := 'False';