dotConnect for SQL Server Documentation
Devart.Data.SqlServer Namespace / SqlCommand Class / CommandTimeout Property

In This Topic
    CommandTimeout Property (SqlCommand)
    In This Topic
    Gets or sets the wait time before terminating an attempt to execute a command and generating an error. Note that it is the time to wait for any server reply since the command was sent to a server, and it doesn't include the time necessary to fetch data if the command selects some data.
    Syntax
    'Declaration
     
    Public Overrides Property CommandTimeout As Integer
    public override int CommandTimeout {get; set;}

    Property Value

    The time (in seconds) to wait for the command to execute. The default value is 30. Not available under .NET Compact Framework.
    Remarks

    Zero value specifies that the wait time is unlimited.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also