Gets or sets the string used to open a connection to Teradata. The ConnectionString identifies session attributes like User Id, Password, Data Source etc.
'Declaration
Public Overrides NotOverridable Property ConnectionString As String
'Usage
Dim instance As TdConnection
Dim value As String
instance.ConnectionString = value
value = instance.ConnectionString
public override string ConnectionString {get; set;}
public:
property String^ ConnectionString {
String^ get() override;
void set ( String^ value) override;
}
Property Value
Value is a string representing the attributes (e.g. Teradata server name, User Id, and Password) used to open a connection to Teradata. The default value is an empty string.
The following example creates an instance of
TdConnection class, sets the
TdConnection.ConnectionTimeout property and opens the connection to Teradata Database.
public TdConnection CreateTdConnection()
{
TdConnection cn = new TdConnection();
cn.ConnectionString = “Data Source=Teradata1;User Id=ca;Password=ca;”;
cn.ConnectionTimeout = 30;
cn.Open();
return cn;
}
Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2