AdsConnection.Database

Advantage .NET Data Provider

Gets the name of the database that the connection object represents.

public string Database {get;}

Remarks

Gets the name of the database that the connection object represents. If the Initial Catalog property was provided in the AdsConnection.ConnectionString, it will be returned. Otherwise, it will return the full connect path. An empty string is returned if no connection path information is available.