The ServerPermission object represents a Microsoft SQL Server server-level permission.
The following tables list the members exposed by the ServerPermission type.
Public Properties
| 名称 | Description | |
|---|---|---|
| .gif) .gif) | AdministerBulkOperations | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | AlterAnyConnection | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | AlterAnyCredential | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | AlterAnyDatabase | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | AlterAnyEndpoint | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | AlterAnyEventNotification | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | AlterAnyLinkedServer | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | AlterAnyLogin | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | AlterResources | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | AlterServerState | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | AlterSettings | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | AlterTrace | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | AuthenticateServer | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | ConnectSql | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | ControlServer | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | CreateAnyDatabase | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | CreateDdlEventNotification | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | CreateEndpoint | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | CreateTraceEventNotification | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | ExternalAccessAssembly | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | Shutdown | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | UnsafeAssembly | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | ViewAnyDatabase | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | ViewAnyDefinition | Gets a permission that can be included in the server permission set. | 
| .gif) .gif) | ViewServerState | Gets a permission that can be included in the server permission set. | 
顶部
Public Methods
(see also Protected Methods )
| 名称 | Description | |
|---|---|---|
| .gif) .gif) | Add | Returns a set of server permissions after adding a new server permission to an existing set of server permissions. | 
| .gif) .gif) | BitwiseOr | |
| .gif) | Equals | Overloaded. Overridden. | 
| .gif) | GetHashCode | Overridden. This method supports the Microsoft SQL Server 2005 infrastructure and is not intended to be used directly from your code. | 
| .gif) | GetType | (inherited from Object ) | 
| .gif) .gif) | op_Addition | Creates a server permission set by performing an addition operation on two ServerPermission objects. | 
| .gif) .gif) | op_BitwiseOr | Creates a server permission set by performing a bitwise OR operation on two ServerPermission objects. | 
| .gif) .gif) | op_Equality | Creates a server permission set by performing an equality operation on two ServerPermission objects. | 
| .gif) .gif) | op_Implicit | |
| .gif) .gif) | op_Inequality | Creates a server permission set by performing an inequality operation on two ServerPermission objects. | 
| .gif) .gif) | ReferenceEquals | (inherited from Object ) | 
| .gif) .gif) | ToServerPermissionSet | Returns a set of server permissions based on a single server permission, by converting a ServerPermission object to a ServerPermissionSet object. | 
| .gif) | ToString | (inherited from Object ) | 
顶部
Protected Methods
| 名称 | Description | |
|---|---|---|
| .gif) | Finalize | (inherited from Object ) | 
| .gif) | MemberwiseClone | (inherited from Object ) | 
顶部
请参阅
参考
ServerPermission Class
Microsoft.SqlServer.Management.Smo Namespace
其他资源
Granting, Revoking, and Denying Permissions
权限
sys.server_permissions (Transact-SQL)