ILogin.DefaultDatabase Property
Gets the default database that the login account is assigned to after logging on to the instance of SQL Server.
Namespace: Microsoft.SqlServer.Management.SqlParser.Metadata
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Syntax
'Declaration
ReadOnly Property DefaultDatabase As IDatabase
Get
'Usage
Dim instance As ILogin
Dim value As IDatabase
value = instance.DefaultDatabase
IDatabase DefaultDatabase { get; }
property IDatabase^ DefaultDatabase {
IDatabase^ get ();
}
abstract DefaultDatabase : IDatabase
function get DefaultDatabase () : IDatabase
Property Value
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IDatabase
The IDatabase object that represents the default database for the login account.