共用方式為


Permission Object

未來的 Microsoft SQL Server 發行版本將不再提供此功能。請避免在新的開發工作中使用此功能,並計劃修改目前使用此功能的應用程式。

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

顯示目前物件的 SQL-DMO 物件模型

Properties

Granted Property

ObjectType Property

Grantee Property

ObjectTypeName Property

ObjectID Property

PrivilegeType Property

ObjectName Property

PrivilegeTypeName Property

ObjectOwner Property

 

Methods

ListPrivilegeColumns Method

備註

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.

ms136203.note(zh-tw,SQL.90).gif附註:
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.

請參閱

參考

Database Object
ListPermissions Method
ListUserPermissions Method
Permission2 Object
StoredProcedure Object
Table Object
View Object

說明及資訊

取得 SQL Server 2005 協助