Propriedade do RDL ILoginOptions.DefaultDatabase
Gets or sets the database that the login uses by default.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
<DisplayNameKeyAttribute("Login_DefaultDatabaseName")> _
<DisplayDescriptionKeyAttribute("Login_DefaultDatabaseDesc")> _
Property DefaultDatabase As String
Get
Set
'Uso
Dim instance As ILoginOptions
Dim value As String
value = instance.DefaultDatabase
instance.DefaultDatabase = value
[DisplayNameKeyAttribute("Login_DefaultDatabaseName")]
[DisplayDescriptionKeyAttribute("Login_DefaultDatabaseDesc")]
string DefaultDatabase { get; set; }
[DisplayNameKeyAttribute(L"Login_DefaultDatabaseName")]
[DisplayDescriptionKeyAttribute(L"Login_DefaultDatabaseDesc")]
property String^ DefaultDatabase {
String^ get ();
void set (String^ value);
}
[<DisplayNameKeyAttribute("Login_DefaultDatabaseName")>]
[<DisplayDescriptionKeyAttribute("Login_DefaultDatabaseDesc")>]
abstract DefaultDatabase : string with get, set
function get DefaultDatabase () : String
function set DefaultDatabase (value : String)
Valor da propriedade
Tipo: System.String
A String value that contains the database that the login uses by default.