Database.Grant Database.Grant Database.Grant Method

Definition

Overloads

Grant(DatabasePermissionSet, String) Grant(DatabasePermissionSet, String) Grant(DatabasePermissionSet, String)
Grant(DatabasePermissionSet, String[]) Grant(DatabasePermissionSet, String[]) Grant(DatabasePermissionSet, String[])
Grant(DatabasePermissionSet, String, Boolean) Grant(DatabasePermissionSet, String, Boolean) Grant(DatabasePermissionSet, String, Boolean)
Grant(DatabasePermissionSet, String[], Boolean) Grant(DatabasePermissionSet, String[], Boolean) Grant(DatabasePermissionSet, String[], Boolean)
Grant(DatabasePermissionSet, String, Boolean, String) Grant(DatabasePermissionSet, String, Boolean, String) Grant(DatabasePermissionSet, String, Boolean, String)
Grant(DatabasePermissionSet, String[], Boolean, String) Grant(DatabasePermissionSet, String[], Boolean, String) Grant(DatabasePermissionSet, String[], Boolean, String)

Grant(DatabasePermissionSet, String) Grant(DatabasePermissionSet, String) Grant(DatabasePermissionSet, String)

public void Grant (Microsoft.SqlServer.Management.Smo.DatabasePermissionSet permission, string granteeName);
member this.Grant : Microsoft.SqlServer.Management.Smo.DatabasePermissionSet * string -> unit
Public Sub Grant (permission As DatabasePermissionSet, granteeName As String)

Parameters

granteeName
String String String

Grant(DatabasePermissionSet, String[]) Grant(DatabasePermissionSet, String[]) Grant(DatabasePermissionSet, String[])

public void Grant (Microsoft.SqlServer.Management.Smo.DatabasePermissionSet permission, string[] granteeNames);
member this.Grant : Microsoft.SqlServer.Management.Smo.DatabasePermissionSet * string[] -> unit
Public Sub Grant (permission As DatabasePermissionSet, granteeNames As String())

Parameters

granteeNames
String[]

Grant(DatabasePermissionSet, String, Boolean) Grant(DatabasePermissionSet, String, Boolean) Grant(DatabasePermissionSet, String, Boolean)

public void Grant (Microsoft.SqlServer.Management.Smo.DatabasePermissionSet permission, string granteeName, bool grantGrant);
member this.Grant : Microsoft.SqlServer.Management.Smo.DatabasePermissionSet * string * bool -> unit
Public Sub Grant (permission As DatabasePermissionSet, granteeName As String, grantGrant As Boolean)

Parameters

granteeName
String String String
grantGrant
Boolean Boolean Boolean

Grant(DatabasePermissionSet, String[], Boolean) Grant(DatabasePermissionSet, String[], Boolean) Grant(DatabasePermissionSet, String[], Boolean)

public void Grant (Microsoft.SqlServer.Management.Smo.DatabasePermissionSet permission, string[] granteeNames, bool grantGrant);
member this.Grant : Microsoft.SqlServer.Management.Smo.DatabasePermissionSet * string[] * bool -> unit
Public Sub Grant (permission As DatabasePermissionSet, granteeNames As String(), grantGrant As Boolean)

Parameters

granteeNames
String[]
grantGrant
Boolean Boolean Boolean

Grant(DatabasePermissionSet, String, Boolean, String) Grant(DatabasePermissionSet, String, Boolean, String) Grant(DatabasePermissionSet, String, Boolean, String)

public void Grant (Microsoft.SqlServer.Management.Smo.DatabasePermissionSet permission, string granteeName, bool grantGrant, string asRole);
member this.Grant : Microsoft.SqlServer.Management.Smo.DatabasePermissionSet * string * bool * string -> unit
Public Sub Grant (permission As DatabasePermissionSet, granteeName As String, grantGrant As Boolean, asRole As String)

Parameters

granteeName
String String String
grantGrant
Boolean Boolean Boolean

Grant(DatabasePermissionSet, String[], Boolean, String) Grant(DatabasePermissionSet, String[], Boolean, String) Grant(DatabasePermissionSet, String[], Boolean, String)

public void Grant (Microsoft.SqlServer.Management.Smo.DatabasePermissionSet permission, string[] granteeNames, bool grantGrant, string asRole);
member this.Grant : Microsoft.SqlServer.Management.Smo.DatabasePermissionSet * string[] * bool * string -> unit
Public Sub Grant (permission As DatabasePermissionSet, granteeNames As String(), grantGrant As Boolean, asRole As String)

Parameters

granteeNames
String[]
grantGrant
Boolean Boolean Boolean

Applies to