OdbcCommand.CommandTimeout Property


Gets or sets the wait time (in seconds) before terminating an attempt to execute a command and generating an error.

 property int CommandTimeout { int get(); void set(int value); };
public int CommandTimeout { get; set; }
member this.CommandTimeout : int with get, set
Public Property CommandTimeout As Integer

Property Value

The time in seconds to wait for the command to execute. The default is 30 seconds.


A value of zero (0) specifies no limit to the wait time, instead of no wait time, and therefore should be avoided.

Applies to

See also