다음을 통해 공유


ListUserColumnPermissions Method

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The ListUserColumnPermissions method returns a SQLObjectList object that enumerates column-level access permissions for a specified Microsoft SQL Server database role or user.

구문

object
.ListUserColumnPermissions(
UserName 
)
as
SQLObjectList

Parts

  • object
    Expression that evaluates to an object in the Applies To list.

  • UserName
    String that specifies an existing user-defined database role in SQL Server, or user by name.

Prototype (C/C++)

HRESULT ListUserColumnPermissions(
SQLDMO_LPCSTR UserName, 
LPSQLDMOPERMISSIONLIST * ppList);

Returns

A SQLObjectList object that contains Permission objects.

주의

The ListUserColumnPermissions method enumerates object-access permissions granted explicitly.

SQL Server and database roles assign permissions by granting statement execution permissions implicitly. Implicit grants are not enumerated by the ListUserPermissions method.

[!참고]

If an application calls ListUserColumnPermissions on an instance of SQL Server version 7.0, the constant, SQLDMO_E_SQL80ONLY, and the message "This property or method requires Microsoft SQL Server 2000 or later" are returned.