ListUserPermissions Method
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.
The ListUserPermissions method returns a SQLObjectList object that enumerates object access privilege for a specified Microsoft SQL Server database role or user.
구문
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.
주의
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:
|