'Declaration Public Overrides NotOverridable ReadOnly Property ConnectionTimeout As Integer
'Usage Dim instance As TdConnection Dim value As Integer value = instance.ConnectionTimeout
public override int ConnectionTimeout {get;}
'Declaration Public Overrides NotOverridable ReadOnly Property ConnectionTimeout As Integer
'Usage Dim instance As TdConnection Dim value As Integer value = instance.ConnectionTimeout
public override int ConnectionTimeout {get;}
This property is set via the TdConnection.ConnectionString. It can be set to any positive value including 0. If it is set to zero, the TdConnection instance will wait indefinitely for a session to be established. However, we don’t recommend setting this number to 0 because it can block the application indefinitely. The application should set this number to an appropriate value.
The default ConnectionTimeout may be changed through support in our application configuration file Application Configuration File ConnectionTimeout. The TdConnectionStringBuilder.ConnectionTimeout will have priority over the Application Configuration file ConnectionTimeout property.
public TdConnection CreateTdConnection() { TdConnection cn = new TdConnection(); cn.ConnectionString = “Data Source=Teradata1;User ID=ca;Password=ca;Connection Timeout=30;”; cn.Open(); return cn; }
Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019