Database Property

Syntax:

public string Database { get; }

Description:

Type: System.String

Gets the currently open database name, or, if the connection is not yet open, the name of the database to be opened automatically when the connection is opened. This can be set using ConnectionString property or via the ChangeDatabase() method.

Exceptions:

None

Reference:

For more information, reference MSDN documentation for: System.Data.Common.DbConnection.Database