Permission Object

后续版本的 Microsoft SQL Server 将删除该功能。请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。

The Permission object exposes Microsoft SQL Server object-access rights.

显示当前对象的 SQL-DMO 对象模型

注释

The Permission object is contained within SQL Distributed Management Objects (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.

注意注意

The Permission object is compatible with instances of SQL Server versions 7.0 and later. However, the Permission2 object extends the functionality of the Permission object for use with features that were introduced in SQL Server 2000.