Compartilhar via


Login.GetDatabaseUser(String) Method

Definition

Returns the user for this login in the specified database

public string GetDatabaseUser (string databaseName);
member this.GetDatabaseUser : string -> string
Public Function GetDatabaseUser (databaseName As String) As String

Parameters

databaseName
String

Returns

The name of the user mapped to this login in the specified database, or an empty string if no such user exists.

Applies to