ListUserPermissions Method
Dieses Feature wird in einer zukünftigen Version von Microsoft SQL Server entfernt. Verwenden Sie dieses Feature beim Entwickeln neuer Anwendungen nicht, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird.
The ListUserPermissions method returns a SQLObjectList object that enumerates object access privilege for a specified Microsoft SQL Server database role or user.
Syntax
object
.ListUserPermissions(
UserName
)
as
SQLObjectList
Parts
- object
Expression that evaluates to an object in the Applies To list.
- UserName
String that specifies an existing SQL Server user-defined database role or user by name.
Prototype (C/C++)
HRESULT ListUserPermissions(
SQLDMO_LPCSTR UserName,
LPSQLDMOPERMISSIONLIST* ppList);
Returns
A SQLObjectList object that contains 0 or more Permission objects.
Hinweise
The ListUserPermissions method enumerates object access permissions granted explicitly.
SQL Server server and database roles assign privilege by granting statement execution permissions implicitly. Implicit grants are not enumerated by the ListUserPermissions method.
Applies To:
|