Gets or sets the time to wait while executing the command before terminating the attempt and generating an error.
[Visual Basic] Public Property CommandTimeout As Integer [C#] public int CommandTimeout {get; set;} [C++] public: __property int get_CommandTimeout(); public: __property void set_CommandTimeout(int); [JScript] public function get CommandTimeout() : int; public function set CommandTimeout(int);
The time (in seconds) to wait for the command to execute. The default value is 30 seconds.
The following example creates an ADOCommand and sets some of its properties.
ADOCommand Class | ADOCommand Members | System.Data.ADO Namespace | ActiveConnection | CommandText | CommandType | RowFetchCount | CommandBehavior | NamedParameters | DefaultCommandTimeout