dotConnect for SQL Server Documentation
Devart.Data.SqlServer Namespace / SqlConnection Class / ConnectionTimeout Property

ConnectionTimeout Property (SqlConnection)
Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error.
Syntax
'Declaration
 
Public Overrides ReadOnly Property ConnectionTimeout As Integer
 

Property Value

The time (in seconds) to wait for a connection to open. The default value is 15 seconds.
Remarks
A value of 0 indicates no limit, and should be avoided in a ConnectionString because an attempt to connect will wait indefinitely. Use connection string to overwrite this value.

This property has no meaning under .NET Compact Framework

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