Share via


SqlSystem.loginDatabase Method

Definition

Retrieves the name of the database currently connected to.

public:
 virtual System::String ^ loginDatabase();
public virtual string loginDatabase ();
abstract member loginDatabase : unit -> string
override this.loginDatabase : unit -> string
Public Overridable Function loginDatabase () As String

Returns

The name of the database currently connected to.

Remarks

The following example demonstrates the loginDatabase method.

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

Applies to