Share via


SqlSystem.loginName Method

Definition

Retrieves the user name that is used to log-in to the database.

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

Returns

The user name that is used to log-in to the database.

Remarks

The following example demonstrates the loginName method.

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

Applies to