Groups | Blog | Home
all groups > sql server (alternate) > september 2003 >

sql server (alternate) : Connection.CommandTimeout


peter.dawson NO[at]SPAM kingsch.nhs.uk
9/30/2003 6:33:02 AM
Running VB6 with SQL Server 7, opening a connection and setting this
parameter by Conn.CommandTimeout does not always seem to force a
command (stored procedure) executed through Conn.Execute to timeout
after the specified period. Is anybody able to suggest what may be
going on here.

drmcl NO[at]SPAM drmcl.free-online.co.uk
9/30/2003 2:03:17 PM
[quoted text, click to view]

CommandTimeout starts when the database server has accepted the
command and ends when the database server returns the first record. If
the server or network is busy (or not answering at all), this setting
Erland Sommarskog
9/30/2003 10:20:09 PM
Petros (peter.dawson@kingsch.nhs.uk) writes:
[quoted text, click to view]

If you are also running queries from the command object, you need
to see the .CommandTimeout for that object too; the value is not
inherited from the connection object.


--
Erland Sommarskog, SQL Server MVP, sommar@algonet.se

Books Online for SQL Server SP3 at
AddThis Social Bookmark Button