Share via


SqlSystem.loginDatabase Method

Retrieves the name of the database currently connected to.

Syntax

public str loginDatabase()

Run On

Server

Return Value

Type: str
The name of the database currently connected to.

Examples

{ 
    SqlSystem SqlSystem = new SqlSystem(); 
    print SqlSystem.loginDatabase(); 
}

See Also

Reference

SqlSystem Class