Export (0) Print
Expand All

Login.GetDatabaseUser Method

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: String
A String value that specifies the name of the database.

Return Value

Type: String
A String value that specifies the database user name.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft