Skip to main content

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.v23.1.dll

NuGet Package: DevExpress.DataAccess


public int? DbCommandTimeout { get; set; }

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
.ConnectionOptions .DbCommandTimeout


When a query timeout expires, the query execution stops and an exception is thrown.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DbCommandTimeout property.


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.

See Also