Share via


MultiServerSqlConnectionInfo.DefaultDatabaseName Property

Gets or sets the name of the database to connect to by default.

Namespace:  Microsoft.SqlServer.Management.MultiServerConnection
Assembly:  Microsoft.SqlServer.Management.MultiServerConnection (in Microsoft.SqlServer.Management.MultiServerConnection.dll)

Syntax

'Declaration
Public Property DefaultDatabaseName As String
    Get
    Set
'Usage
Dim instance As MultiServerSqlConnectionInfo
Dim value As String

value = instance.DefaultDatabaseName

instance.DefaultDatabaseName = value
public string DefaultDatabaseName { get; set; }
public:
property String^ DefaultDatabaseName {
    String^ get ();
    void set (String^ value);
}
member DefaultDatabaseName : string with get, set
function get DefaultDatabaseName () : String
function set DefaultDatabaseName (value : String)

Property Value

Type: System.String
A String containing the database name.