다음을 통해 공유


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.

상속 계층

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

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public NotInheritable Class DatabasePermission
‘사용 방법
Dim instance As DatabasePermission
public sealed class DatabasePermission
public ref class DatabasePermission sealed
[<SealedAttribute>]
type DatabasePermission =  class end
public final class DatabasePermission

DatabasePermission 유형에서 다음 멤버를 표시합니다.

속성

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

맨 위로 이동

메서드

  이름 설명
공용 메서드정적 멤버 Add Returns a set of database permissions after adding a new database permission to an existing set of database permissions.
공용 메서드정적 멤버 BitwiseOr Creates a database permission set by performing a bitwise OR operation on two DatabasePermission objects.
공용 메서드 Equals Determines whether the referenced database permission object is equal to a specified object. (Object.Equals(Object)을(를) 재정의함)
공용 메서드 GetHashCode This method supports the SQL Server infrastructure and is not intended to be used directly from your code. (Object.GetHashCode()을(를) 재정의함)
공용 메서드 GetType (Object에서 상속됨)
공용 메서드정적 멤버 ToDatabasePermissionSet Returns a set of database permissions, based on a single database permission, by converting a DatabasePermission object to a DatabasePermissionSet object.
공용 메서드 ToString (Object에서 상속됨)

맨 위로 이동

연산자

  이름 설명
공용 연산자정적 멤버 Addition Creates a database permission set by performing an addition operation on two DatabasePermission objects.
공용 연산자정적 멤버 BitwiseOr Creates a database permission set by performing a bitwise OR operation on two DatabasePermission objects.
공용 연산자정적 멤버 Equality Compares two DatabasePermission objects in an equality operation.
공용 연산자정적 멤버 Implicit(DatabasePermission to DatabasePermissionSet) Converts a single database permission object to a database permission set.
공용 연산자정적 멤버 Inequality Determines whether two DatabasePermission objects are not equal by performing an inequality operation.

맨 위로 이동

주의

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

이 유형의 모든 public static(Microsoft Visual Basic의 경우 공유) 멤버는 다중 스레드 작업을 수행하기에 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

권한 부여, 취소 및 거부

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

Microsoft.SqlServer.Management.Smo 네임스페이스

관련 자료

사용 권한(데이터베이스 엔진)