Login.GetDatabaseUser(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.