ADODB Object
 
Syntax
 
commandobject.CommandTimeout = long
long = commandobject.CommandTimeout
 
Description
The number of seconds to wait while attempting to execute a command, before cancelling the attempt and generating an error.
The CommandTimeout property defines how many seconds to wait before cancelling an Execute method call and generating an error. The default is thirty seconds. If you set CommandTimeout equal to zero seconds, the program will wait indefinitely or until the Execute is completed.
 
The Connection object has a similar property, but the two properties do not inherit from each other.
See Also
Command, Connection.CommandTimeout.
Example
 
Set objCommand = Server.CreateObject("ADODB.Command")
Set objCommand.ActiveConnection = strConnection
objCommand.CommandTimeout = 120