Skip to main content
A newer version of this page is available. .

ConnectionOptions.DbCommandTimeout Property

Specifies the wait time before terminating the attempt to execute a query and generating an error.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v20.2.dll

NuGet Packages: DevExpress.DataAccess, DevExpress.WindowsDesktop.DataAccess

Declaration

[DefaultValue(null)]
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:

Library Object Type Path to DbCommandTimeout
Cross-Platform Class Library SqlDataSource
.ConnectionOptions .DbCommandTimeout
Dashboard DashboardSqlDataSource
.ConnectionOptions .DbCommandTimeout

Remarks

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.

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.

See Also