Re: does CommandTimeout takes effect?

From: Arnie Mauer (xxx_at_nowhere.net)
Date: 01/06/04


Date: Tue, 6 Jan 2004 09:23:12 -0500


"Xie Bingpeng" <xbp@teabird.com.cn> wrote in message
news:3ffa8c10$3@newsgroups.borland.com...
> hi all:
> I using Delphi 7, SQL Server 2000.
> I convert my application from BDE to ADO, In BDE version,
> I fetch and Update sql server datas all right, but in
> ADO version, sime times "Time out" error occurs when operate
> SQL server.
> I think TADOConnetion and TADOQuery's CommandTimeout may controls
> this, But I write a test program to test this, found CommandTimeout
> takes no effect.
> I also set SQL Server's Query time-out to 0 (unlimited), but no effect.
>
> How to resolve "Time out" problem?
>
> thanks.

The TADOQuery CommandTimeout value will override that of the connection. We
had the problem, but setting the query's CommandTimeout value to zero solved
the problem.

- Arnie



Relevant Pages

  • does CommandTimeout takes effect?
    ... I using Delphi 7, SQL Server 2000. ... I convert my application from BDE to ADO, In BDE version, ... ADO version, sime times "Time out" error occurs when operate ... this, But I write a test program to test this, found CommandTimeout ...
    (borland.public.delphi.database.ado)
  • Re: "Timeout expired" for simple ADO.NET SQL Server query
    ... It sounds like the problem may be on your SQL Server. ... Kevin Spencer ... >> This can be alleviated by increasing the CommandTimeout. ...
    (microsoft.public.dotnet.framework.aspnet)
  • SQL -> Oracle
    ... I have a Delphi project with more than 300 units, accessing SQL Server ... also Oracle customers. ... we are considering to forget about BDE, and use something else, like ADO. ... automatically converts query texts from SQL to Oracle? ...
    (borland.public.delphi.non-technical)
  • Re: Large Number Of Inserts
    ... > SQL server 2000. ... CommandTimeout properties of the Connection object or the CommandTimeout ...
    (microsoft.public.data.ado)
  • Re: SQL Timeout Error
    ... I am using Express versions of SQL Server 2005 and SQL Server ... "Robert Lakinski" wrote: ... and how do I set the CommandTimeout property? ... Whether SqlConnection object establishes connection to the sql server ...
    (microsoft.public.sqlserver.server)