Any suggestions? Export (0) Print
Expand All

ServerPermissionSet Class

 

The ServerPermissionSet object represents a set of server permissions.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

System.Object
  Microsoft.SqlServer.Management.Smo.PermissionSetBase
    Microsoft.SqlServer.Management.Smo.ServerPermissionSet

public sealed class ServerPermissionSet : PermissionSetBase

NameDescription
System_CAPS_pubmethodServerPermissionSet()

Initializes a new instance of the ServerPermissionSet class.

System_CAPS_pubmethodServerPermissionSet(ServerPermission)

Initializes a new instance of the ServerPermissionSet class based on the specified permission.

System_CAPS_pubmethodServerPermissionSet(ServerPermission[])

Initializes a new instance of the ServerPermissionSet class based on the specified set of permissions.

System_CAPS_pubmethodServerPermissionSet(ServerPermissionSet)

Initializes a new instance of the ServerPermissionSet class based on the specified set of permissions.

NameDescription
System_CAPS_pubpropertyAdministerBulkOperations

Gets or sets the Boolean property value that specifies whether to include the ADMINISTER BULK OPERATIONS (ADBO) permission in the permission set. This permission lets the grantee perform bulk insert operations on the instance of SQL Server, such as importing data by using the bcp command, using the BULK INSERT statement, or using the INSERT…SELECT * FROM OPENROWSET(BULK…) statement.

System_CAPS_pubpropertyAlterAnyAvailabilityGroup

Gets or sets the Boolean property value that specifies whether to include the ALTER ANY AVAILABILITY GROUP permission in the permission set. This permission lets the grantee create, alter, or drop any availability group on the instance of SQL Server.

System_CAPS_pubpropertyAlterAnyConnection

Gets or sets the Boolean property value that specifies whether to include the ALTER ANY CONNECTION (ALCO) permission in the permission set. This permission lets the grantee create, alter, or drop any connection on the instance of SQL Server.

System_CAPS_pubpropertyAlterAnyCredential

Gets or sets the Boolean property value that specifies whether to include the ALTER ANY CREDENTIAL (ALCD) permission in the permission set. This permission lets the grantee create, alter, or drop any credential on the instance of SQL Server.

System_CAPS_pubpropertyAlterAnyDatabase

Gets or sets the Boolean property value that specifies whether to include the ALTER ANY DATABASE (ALDB) permission in the permission set. This permission lets the grantee create, alter, or drop any database on the instance of SQL Server.

System_CAPS_pubpropertyAlterAnyEndpoint

Gets or sets the Boolean property value that specifies whether to include the ALTER ANY ENDPOINT (ALHE) permission in the permission set. This permission lets the grantee create, alter, or drop any endpoint on the instance of SQL Server.

System_CAPS_pubpropertyAlterAnyEventNotification

Gets or sets the Boolean property value that specifies whether to include the ALTER ANY EVENT NOTIFICATION (ALES) permission in the permission set. This permission lets the grantee to create, alter, or drop any event notification on the instance of SQL Server.

System_CAPS_pubpropertyAlterAnyEventSession

Gets or sets the Boolean property value that specifies whether to include the ALTER ANY EVENT SESSION permission in the permission set. This permission lets the grantee create, alter, or drop any event session on the instance of SQL Server.

System_CAPS_pubpropertyAlterAnyLinkedServer

Gets or sets the Boolean property value that specifies whether to include the ALTER ANY LINKED SERVER (ALLS) permission in the permission set. This permission lets the grantee create, alter, or drop any linked server on the instance of SQL Server.

System_CAPS_pubpropertyAlterAnyLogin

Gets or sets the Boolean property value that specifies whether to include the ALTER ANY LOGIN (ALLG) permission in the permission set. This permission lets the grantee create, alter, or drop any login on the instance of SQL Server.

System_CAPS_pubpropertyAlterAnyServerAudit

Gets or sets the Boolean property value that specifies whether to include the ALTER ANY SERVER AUDIT permission in the permission set. This permission lets the grantee stop, start, or pause the instance of SQL Server.

System_CAPS_pubpropertyAlterAnyServerRole

Gets or sets the Boolean property value that specifies whether to include the ALTER ANY SERVER ROLE permission in the permission set. This permission lets the grantee stop, start, or pause the instance of SQL Server.

System_CAPS_pubpropertyAlterResources

Gets or sets the Boolean property value that specifies whether to include the ALTER RESOURCES (ALRS) permission in the permission set. This permission lets the grantee create, alter, or drop any resource on the instance of SQL Server.

System_CAPS_pubpropertyAlterServerState

Gets or sets the Boolean property value that specifies whether to include the ALTER SERVER STATE (ALSS) permission in the permission set. This permission lets the grantee stop, start, or pause the instance of SQL Server.

System_CAPS_pubpropertyAlterSettings

Gets or sets the Boolean property value that specifies whether to include the ALTER SETTINGS (ASLT) permission in the permission set. This permission lets the grantee alter any settings on the instance of SQL Server, such as the default database directory.

System_CAPS_pubpropertyAlterTrace

Gets or sets the Boolean property value that specifies whether to include the ALTER TRACE (ALTR) permission in the permission set. This permission lets the grantee start, or stop trace runs or modify the trace options on the instance of SQL Server.

System_CAPS_pubpropertyAuthenticateServer

Gets or sets the Boolean property value that specifies whether to include the AUTHENTICATE SERVER permission in the permission set. This permission lets the grantee authenticate with the instance of SQL Server.

System_CAPS_pubpropertyConnectAnyDatabase

Gets or sets the Boolean property value that specifies whether to include the CONNECT ANY DATABASE permission in the permission set. This permission lets the grantee connect to any database on the instance of SQL Server.

System_CAPS_pubpropertyConnectSql

Gets or sets the Boolean property value that specifies whether to include the CONNECT SQL (COSQ) permission in the permission set. This permission lets the grantee connect to the instance of SQL Server.

System_CAPS_pubpropertyControlServer

Gets or sets the Boolean property value that specifies whether to include the CONTROL SERVER (CL) permission in the permission set. This permission lets the grantee grant any permission on any securable on the instance of SQL Server.

System_CAPS_pubpropertyCreateAnyDatabase

Gets or sets the Boolean property value that specifies whether to include the CREATE ANY DATABASE (CRDB) permission in the permission set. This permission lets the grantee create, alter, or drop any database on the instance of SQL Server.

System_CAPS_pubpropertyCreateAvailabilityGroup

Gets or sets the Boolean property value that specifies whether to include the CREATE AVAILABILITY GROUP permission in the permission set. This permission lets the grantee create, alter, or drop availability group on the instance of SQL Server.

System_CAPS_pubpropertyCreateDdlEventNotification

Gets or sets the Boolean property value that specifies whether to include the CREATE DDL EVENT NOTIFICATION (CRDE) permission in the permission set. This permission lets the grantee create any DDL (Data Definition Language) event notification on the instance of SQL Server, such as the event that is raised when a database is created.

System_CAPS_pubpropertyCreateEndpoint

Gets or sets the Boolean property value that specifies whether to include the CREATE ENDPOINT (CRHE) permission in the permission set. This permission lets the grantee create endpoints on the instance of SQL Server for SOAP, Transact-SQL, database mirroring, and Service Broker.

System_CAPS_pubpropertyCreateServerRole

Gets or sets the Boolean property value that specifies whether to include the CREATE SERVER ROLE permission in the permission set. This permission lets the grantee create server role on the instance of SQL Server.

System_CAPS_pubpropertyCreateTraceEventNotification

Gets or sets the Boolean property value that specifies whether to include the CREATE TRACE EVENT NOTIFICATION (CRTE) permission in the permission set. This permission lets the grantee create trace event notifications on the instance of SQL Server.

System_CAPS_pubpropertyExternalAccessAssembly

Gets or sets the Boolean property value that specifies whether to include the EXTERNAL ACCESS (XA) permission in the permission set. This permission lets the grantee access external system resources such as assembly files, networks, environmental variables, and the registry.

System_CAPS_pubpropertyImpersonateAnyLogin

Gets or sets the Boolean property value that specifies whether to include the IMPERSONATE ANY LOGIN permission in the permission set. This permission lets the grantee impersonate any login on the instance of SQL Server.

System_CAPS_pubpropertySelectAllUserSecurables

Gets or sets the Boolean property value that specifies whether to include the SELECT ALL USER SECURABLES permission in the permission set. This permission lets the grantee select all user securables on the instance of SQL Server.

System_CAPS_pubpropertyShutdown

Gets or sets the Boolean property value that specifies whether to include the SHUTDOWN (SHDN) permission in the permission set. This permission lets the grantee stop the SQL Server service.

System_CAPS_pubpropertyUnsafeAssembly

Gets or sets the Boolean property value that specifies whether to include the UNSAFE permission in the permission set. This permission allows the grantee unrestricted access to resources, both within and outside SQL Server, including calls to unmanaged code

System_CAPS_pubpropertyViewAnyDatabase

Gets or sets the Boolean property value that specifies whether to include the VIEW ANY DATABASE (VWDB) permission in the permission set. This permission lets the grantee view the definition (metadata) of any database on the instance of SQL Server.

System_CAPS_pubpropertyViewAnyDefinition

Gets or sets the Boolean property value that specifies whether to include the VIEW ANY DEFINITION (VWAD) permission in the permission set. This permission lets the grantee view the definition of any server that is securable on the instance of SQL Server.

System_CAPS_pubpropertyViewServerState

Gets or sets the Boolean property value that specifies whether to include the VIEW SERVER STATE (VWSS) permission in the permission set. This permission lets the grantee view the state of the instance of SQL Server.

NameDescription
System_CAPS_pubmethodAdd(ServerPermission)

Returns a server permission set after adding a new server permission to the referenced permission set.

System_CAPS_pubmethodSystem_CAPS_staticAdd(ServerPermissionSet, ServerPermission)

Returns a server permission set after adding a new server permission to the specified permission set.

System_CAPS_pubmethodEquals(Object)

Determines whether the referenced server permission object is equal to a specified object.(Overrides PermissionSetBase.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Do not reference this member directly in your code. It supports the SQL Server infrastructure.(Overrides PermissionSetBase.GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodRemove(ServerPermission)

Removes a permission from the permission set.

System_CAPS_pubmethodSystem_CAPS_staticSubtract(ServerPermissionSet, ServerPermission)

Returns a server permission set after subtracting a server permission from the specified permission set.

System_CAPS_pubmethodToString()

Returns the string value that represents the specified PermissionSetBase object.(Inherited from PermissionSetBase.)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticAddition(ServerPermissionSet, ServerPermission)

Creates a server permission set by performing an addition operation on a ServerPermission object and a ServerPermissionSet object.

System_CAPS_puboperatorSystem_CAPS_staticEquality(ServerPermissionSet, ServerPermissionSet)

Determines whether two objects are equal by performing an equality operation on two ServerPermissionSet objects.

System_CAPS_puboperatorSystem_CAPS_staticInequality(ServerPermissionSet, ServerPermissionSet)

Determines whether two objects are unequal by performing an inequality operation on two ServerPermissionSet objects.

System_CAPS_puboperatorSystem_CAPS_staticSubtraction(ServerPermissionSet, ServerPermission)

Creates a server permission set by performing a subtraction operation on a ServerPermission object and a ServerPermissionSet object.

Server permissions are required when you grant, deny, or revoke server-level permissions on an instance of SQL Server. The ServerPermissionSet object is required to specify the set of permissions that apply to the Grant method, the Deny method, and the Revoke method of the Server object.

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft