SqlConnectionStringBuilder::ConnectTimeout Property
.NET Framework (current version)
Gets or sets the length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error.
Assembly: System.Data (in System.Data.dll)
Property Value
Type: System::Int32The value of the ConnectTimeout property, or 15 seconds if no value has been supplied.
This property corresponds to the "Connect Timeout", "connection timeout", and "timeout" keys within the connection string.
When opening a connection to a Azure SQL Database, set the connection timeout to 30 seconds.
.NET Framework
Available since 2.0
Available since 2.0
Show: