Send feedback on this topic.
Teradata.Client.Provider
RestrictToDefaultDatabase Property



Teradata.Client.Provider Namespace > TdConnectionStringBuilder Class : RestrictToDefaultDatabase Property
Indicates whether Schema queries TdConnection.GetSchema should be restricted to the Default Database.
Syntax
'Declaration
 
Public Property RestrictToDefaultDatabase As Boolean
'Usage
 
Dim instance As TdConnectionStringBuilder
Dim value As Boolean
 
instance.RestrictToDefaultDatabase = value
 
value = instance.RestrictToDefaultDatabase
public bool RestrictToDefaultDatabase {get; set;}
public:
property bool RestrictToDefaultDatabase {
   bool get();
   void set (    bool value);
}

Property Value

true restricts schema queries to the Default Database. Default value is false.
Remarks

All Schema Collection queries are restricted to the Default Database (TdConnectionStringBuilder.Database) when this property is set to true. The Default Database can be set through the connection string and TdConnection.ChangeDatabase method.

Default Value: false

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