次の方法で共有


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.

ms144129.note(ja-jp,SQL.90).gifメモ :
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.

Applies To:

Table2 Object

View2 Object