Udostępnij przez


ILoginOptions.DefaultDatabase Property

Gets or sets the database that the login uses by default. This property is not CLS-compliant.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Deklaracja
<DisplayDescriptionKeyAttribute("Login_DefaultDatabaseDesc")> _
<DisplayNameKeyAttribute("Login_DefaultDatabaseName")> _
Property DefaultDatabase As String
[DisplayDescriptionKeyAttribute("Login_DefaultDatabaseDesc")] 
[DisplayNameKeyAttribute("Login_DefaultDatabaseName")] 
string DefaultDatabase { get; set; }
[DisplayDescriptionKeyAttribute(L"Login_DefaultDatabaseDesc")] 
[DisplayNameKeyAttribute(L"Login_DefaultDatabaseName")] 
property String^ DefaultDatabase {
    String^ get ();
    void set (String^ value);
}
/** @property */
String get_DefaultDatabase ()

/** @property */
void set_DefaultDatabase (String value)
function get DefaultDatabase () : String

function set DefaultDatabase (value : String)

Property Value

A String value that contains the database that the login uses by default.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.