Send feedback on this topic.
Teradata.Client.Provider
Database Property (TdConnectionStringBuilder)



Teradata.Client.Provider Namespace > TdConnectionStringBuilder Class : Database Property
The database selected as the default database when a Teradata connection is opened.
Syntax
'Declaration
 
Public Property Database As String
'Usage
 
Dim instance As TdConnectionStringBuilder
Dim value As String
 
instance.Database = value
 
value = instance.Database
public string Database {get; set;}
public:
property String^ Database {
   String^ get();
   void set (    String^ value);
}
Remarks
If the provider string does not include Default Database, the Advanced SQL Engine uses the default database specified when the Teradata user was created.

If Default Database specifies an invalid database, the .NET Data Provider for Teradata still opens the Teradata connection. However, the Advanced SQL Engine uses the database specified when the user was created. The invalid database name still appears in the connection string. However, the Database property correctly reflects the default database used by the Advanced SQL Engine.

Default Value: empty string

Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdConnectionStringBuilder Class
TdConnectionStringBuilder Members