GetDatabaseUser méthode
Gets the name of the user that the login account is mapped to in a specified database.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Function GetDatabaseUser ( _
databaseName As String _
) As String
'Utilisation
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
Paramètres
- databaseName
Type : System. . :: . .String
A String value that specifies the name of the database.
Valeur de retour
Type : System. . :: . .String
A String value that specifies the database user name.
Voir aussi