'Declaration Public Overrides NotOverridable ReadOnly Property Database As String
'Usage Dim instance As TdConnection Dim value As String value = instance.Database
public override string Database {get;}
'Declaration Public Overrides NotOverridable ReadOnly Property Database As String
'Usage Dim instance As TdConnection Dim value As String value = instance.Database
public override string Database {get;}
If the connection is open, this property returns an internally cached representation of last known default database. If the default database is changed via a TdConnection.ChangeDatabase method, a SQL DATABASE command is issued, an informational message (TdConnection.InfoMessage) is sent and the internally cached representation of last known default database is updated. TdConnection caches the last known default database to avoid additional roundtrips to the Advanced SQL Engine and back. We highly recommend setting the default database via the TdConnection.ConnectionString property. This will ensure that the last known default database is always correct for pooled connections.
public TdConnection CreateTdConnection() { TdConnection cn = new TdConnection(); cn.ConnectionString = “Data Source=Teradata1;User Id=ab;Password=ab;Database=Retail;”; cn.Open(); return cn; }
Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019