Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
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)
Syntax
'Declaration
Public Function GetDatabaseUser ( _
databaseName As String _
) As String
'Usage
Dim instance As Login
Dim databaseName As String
Dim returnValue As String
returnValue = instance.GetDatabaseUser(databaseName)
public string GetDatabaseUser(
string databaseName
)
public:
String^ GetDatabaseUser(
String^ databaseName
)
member GetDatabaseUser :
databaseName:string -> string
public function GetDatabaseUser(
databaseName : String
) : String
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.
Examples
Managing Users, Roles, and Logins
See Also
Reference
Microsoft.SqlServer.Management.Smo Namespace