Database property

Gets the name of the current database.

Syntax
Visual Basic

Public Overrides Readonly Property Database As String
C#

public override string  Database { get;}
Remarks

If the connection is opened, SAConnection returns the name of the current database. Otherwise, SAConnection looks in the connection string in the following order: DatabaseName, DBN, DataSourceName, DataSource, DSN, DatabaseFile, DBF.

See also