Freigeben über


User.Grant-Methode

Geschützte Member einschließen
Geerbte Member einschließen

Grants access to the specified permission for the specified grantees on the database user.

Das Element ist überladen. Um vollständige Informationen zu diesem Element zu erhalten, einschließlich Syntax, Verwendung und Beispielen, klicken Sie auf einen Namen in der Überladungsliste.

Überladungsliste

  Name Beschreibung
Öffentliche Methode Grant(ObjectPermissionSet, String) Grants access to the specified permission for the specified grantee on the database user.
Öffentliche Methode Grant(ObjectPermissionSet, array<String[]) Grants access to the specified permission for the specified grantees on the database user.
Öffentliche Methode Grant(ObjectPermissionSet, String, Boolean) Grants access to the specified permission and the ability to grant access to other users for the specified grantee on the database user.
Öffentliche Methode Grant(ObjectPermissionSet, array<String[], Boolean) Grants access to the specified permission and the ability to grant access to other users for the specified grantees on the database user.
Öffentliche Methode Grant(ObjectPermissionSet, String, Boolean, String) Grants access to the specified permission and the ability to grant access to other users for the specified grantee on the database user.
Öffentliche Methode Grant(ObjectPermissionSet, array<String[], Boolean, String) Grants access to the specified permission and the ability to grant access to other users for the specified grantee on the database user under an assumed role.

Zum Anfang

Siehe auch

Verweis

User Klasse

Microsoft.SqlServer.Management.Smo-Namespace