Condividi tramite


Classe ServerPermissionSet

The ServerPermissionSet object represents a set of server permissions.

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public NotInheritable Class ServerPermissionSet _
    Inherits PermissionSetBase
'Utilizzo
Dim instance As ServerPermissionSet
public sealed class ServerPermissionSet : PermissionSetBase
public ref class ServerPermissionSet sealed : public PermissionSetBase
[<SealedAttribute>]
type ServerPermissionSet =  
    class
        inherit PermissionSetBase
    end
public final class ServerPermissionSet extends PermissionSetBase

Nel tipo ServerPermissionSet sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico ServerPermissionSet() () () () Initializes a new instance of the ServerPermissionSet class.
Metodo pubblico ServerPermissionSet(ServerPermission) Initializes a new instance of the ServerPermissionSet class based on the specified permission.
Metodo pubblico ServerPermissionSet(array<ServerPermission> [] () [] []) Initializes a new instance of the ServerPermissionSet class based on the specified set of permissions.
Metodo pubblico ServerPermissionSet(ServerPermissionSet) Initializes a new instance of the ServerPermissionSet class based on the specified set of permissions.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica AdministerBulkOperations 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.
Proprietà pubblica AlterAnyConnection 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.
Proprietà pubblica AlterAnyCredential 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.
Proprietà pubblica AlterAnyDatabase 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.
Proprietà pubblica AlterAnyEndpoint 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.
Proprietà pubblica AlterAnyEventNotification 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.
Proprietà pubblica AlterAnyLinkedServer 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.
Proprietà pubblica AlterAnyLogin 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 linked server on the instance of SQL Server.
Proprietà pubblica AlterAnyServerAudit 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.
Proprietà pubblica AlterResources 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.
Proprietà pubblica AlterServerState 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.
Proprietà pubblica AlterSettings 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.
Proprietà pubblica AlterTrace 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.
Proprietà pubblica AuthenticateServer 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.
Proprietà pubblica ConnectSql 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.
Proprietà pubblica ControlServer 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.
Proprietà pubblica CreateAnyDatabase 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.
Proprietà pubblica CreateDdlEventNotification 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.
Proprietà pubblica CreateEndpoint 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.
Proprietà pubblica CreateTraceEventNotification 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.
Proprietà pubblica ExternalAccessAssembly 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.
Proprietà pubblica Shutdown 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.
Proprietà pubblica UnsafeAssembly 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
Proprietà pubblica ViewAnyDatabase 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.
Proprietà pubblica ViewAnyDefinition 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.
Proprietà pubblica ViewServerState 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.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Add(ServerPermission) Returns a server permission set after adding a new server permission to the referenced permission set.
Metodo pubblicoMembro statico Add(ServerPermissionSet, ServerPermission) Returns a server permission set after adding a new server permission to the specified permission set.
Metodo pubblico Equals Determines whether the referenced server permission object is equal to a specified object. Esegue l'override di PermissionSetBase. . :: . .Equals(Object).
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetHashCode Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Esegue l'override di PermissionSetBase. . :: . .GetHashCode() () () ().
Metodo pubblico GetType Ereditato da Object.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico Remove Removes a permission from the permission set.
Metodo pubblicoMembro statico Subtract Returns a server permission set after subtracting a server permission from the specified permission set.
Metodo pubblico ToString Restituisce il valore stringa che rappresenta l'oggetto PermissionSetBase specificato. Ereditato da PermissionSetBase.

In alto

Operatori

  Nome Descrizione
Operatore pubblicoMembro statico Addition Creates a server permission set by performing an addition operation on a ServerPermission object and a ServerPermissionSet object.
Operatore pubblicoMembro statico Equality Determines whether two objects are equal by performing an equality operation on two ServerPermissionSet objects.
Operatore pubblicoMembro statico Inequality Determines whether two objects are unequal by performing an inequality operation on two ServerPermissionSet objects.
Operatore pubblicoMembro statico Subtraction Creates a server permission set by performing a subtraction operation on a ServerPermission object and a ServerPermissionSet object.

In alto

Osservazioni

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.

Thread Safety

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.