The ListUserColumnPermissions method returns a SQLObjectList object that enumerates column-level access permissions for a specified Microsoft® SQL Server™ 2000 database role or user.
object.ListUserColumnPermissions( UserName ) as SQLObjectList
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
HRESULT ListUserColumnPermissions(
SQLDMO_LPCSTR UserName,
LPSQLDMOPERMISSIONLIST * ppList);
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.
Note 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" are returned.