Condividi tramite


Classe DatabasePermission

The DatabasePermission object represents a SQL Server database permission. The database permission can be added to a database permission set, and then granted, revoked, or denied to a user.

Gerarchia di ereditarietà

System.Object
  Microsoft.SqlServer.Management.Smo.DatabasePermission

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

Sintassi

'Dichiarazione
Public NotInheritable Class DatabasePermission
'Utilizzo
Dim instance As DatabasePermission
public sealed class DatabasePermission
public ref class DatabasePermission sealed
[<SealedAttribute>]
type DatabasePermission =  class end
public final class DatabasePermission

Nel tipo DatabasePermission sono esposti i membri seguenti.

Proprietà

  Nome Descrizione
Proprietà pubblicaMembro statico Alter Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico AlterAnyApplicationRole Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico AlterAnyAssembly Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico AlterAnyAsymmetricKey Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico AlterAnyCertificate Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico AlterAnyContract Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico AlterAnyDatabaseAudit Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico AlterAnyDatabaseDdlTrigger Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico AlterAnyDatabaseEventNotification Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico AlterAnyDataspace Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico AlterAnyFulltextCatalog Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico AlterAnyMessageType Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico AlterAnyRemoteServiceBinding Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico AlterAnyRole Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico AlterAnyRoute Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico AlterAnySchema Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico AlterAnyService Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico AlterAnySymmetricKey Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico AlterAnyUser Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico Authenticate Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico BackupDatabase Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico BackupLog Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico Checkpoint Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico Connect Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico ConnectReplication Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico Control Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateAggregate Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateAssembly Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateAsymmetricKey Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateCertificate Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateContract Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateDatabase Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateDatabaseDdlEventNotification Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateDefault Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateFulltextCatalog Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateFunction Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateMessageType Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateProcedure Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateQueue Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateRemoteServiceBinding Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateRole Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateRoute Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateRule Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateSchema Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateService Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateSymmetricKey Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateSynonym Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateTable Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateType Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateView Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico CreateXmlSchemaCollection Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico Delete Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico Execute Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico Insert Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico References Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico Select Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico Showplan Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico SubscribeQueryNotifications Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico TakeOwnership Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico Update Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico ViewDatabaseState Gets a permission that can be included in the database permission set.
Proprietà pubblicaMembro statico ViewDefinition Gets a permission that can be included in the database permission set.

In alto

Metodi

  Nome Descrizione
Metodo pubblicoMembro statico Add Returns a set of database permissions after adding a new database permission to an existing set of database permissions.
Metodo pubblicoMembro statico BitwiseOr Creates a database permission set by performing a bitwise OR operation on two DatabasePermission objects.
Metodo pubblico Equals Determines whether the referenced database permission object is equal to a specified object. Esegue l'override di Object.Equals(Object).
Metodo pubblico GetHashCode This method supports the SQL Server infrastructure and is not intended to be used directly from your code. Esegue l'override di Object.GetHashCode().
Metodo pubblico GetType Ereditato da Object.
Metodo pubblicoMembro statico ToDatabasePermissionSet Returns a set of database permissions, based on a single database permission, by converting a DatabasePermission object to a DatabasePermissionSet object.
Metodo pubblico ToString Ereditato da Object.

In alto

Operatori

  Nome Descrizione
Operatore pubblicoMembro statico Addition Creates a database permission set by performing an addition operation on two DatabasePermission objects.
Operatore pubblicoMembro statico BitwiseOr Creates a database permission set by performing a bitwise OR operation on two DatabasePermission objects.
Operatore pubblicoMembro statico Equality Compares two DatabasePermission objects in an equality operation.
Operatore pubblicoMembro statico Implicit(DatabasePermission to DatabasePermissionSet) Converts a single database permission object to a database permission set.
Operatore pubblicoMembro statico Inequality Determines whether two DatabasePermission objects are not equal by performing an inequality operation.

In alto

Osservazioni

Database permissions are required when running granting, denying, or revoking permissions on a database. The DatabasePermission object is used to specify the set of permissions that apply to the Grant, Deny, and Revoke methods of the Database object. Also, database permissions can be added to the DatabasePermissionSet object, which can also be used with the Grant, Deny, and Revoke methods.

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.

Esempi

Concessione, revoca e negazione delle autorizzazioni

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.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Management.Smo

Altre risorse

Autorizzazioni (Motore di database)