Permission Object

SQL-DMO

SQL-DMO
Methods
ListPrivilegeColumns Method
Remarks

The Permission object is contained within SQL-DMO list objects and is used solely for reporting object-access rights. For example, the Table object has Permissions and UserPermissions lists reporting the access rights to a specific SQL Server table. Membership in these object lists is affected by granting, revoking, or denying object-specific access rights to SQL Server users and database roles. You can use the containing object's Grant, Revoke, and Deny methods to control SQL Server access rights and affect list membership.

All properties of the Permission object are read-only.

Note  The Permission object is compatible with instances of SQL Server 2000 and SQL Server version 7.0. However, the Permission2 object extends the functionality of the Permission object for use with features that are new in SQL Server 2000.

See Also

Database Object

Permission2 Object

StoredProcedure Object

Table Object

View Object

ListPermissions Method

ListUserPermissions Method