TechNet
Export (0) Print
Expand All

Login.GetDatabaseUser Method (String)

 

Gets the name of the user that the login account is mapped to in a specified database.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public string GetDatabaseUser(
	string databaseName
)

Parameters

databaseName
Type: System.String

A String value that specifies the name of the database.

Return Value

Type: System.String

A String value that specifies the database user name.

Return to top
Show:
© 2016 Microsoft