ConnectionOptions.DbCommandTimeout Property
Specifies the wait time (in seconds) before terminating the attempt to execute a query and generating an error.
Namespace: DevExpress.DataAccess.Sql
Assembly: DevExpress.DataAccess.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Nullable<Int32> | null | A nullable integer value, specifying the time in seconds to wait for the query to execute. The null value (Nothing in Visual Basic) indicates the use of the provider’s default setting. A zero value indicates unlimited timeout. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to DbCommandTimeout |
---|---|
SqlDataSource |
|
Remarks
When a query timeout expires, the query execution stops and an exception is thrown.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DbCommandTimeout property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.