IColumnPermission.Grant Method

Definition

Overloads

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

The Grant method assigns permissions to one or more users or roles for the specified columns. When grantGrant is true, the grantee(s) specified are granted the ability to execute the GRANT statement referencing the object. Use the AsRole argument to specify the role under which role to execute the grant.

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

The Grant method assigns permissions to one or more users or roles for the specified columns. When grantGrant is true, the grantee(s) specified are granted the ability to execute the GRANT statement referencing the object. Use the AsRole argument to specify the role under which role to execute the grant.

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

The Grant method assigns permissions to one or more users or roles for the specified columns. When grantGrant is true, the grantee(s) specified are granted the ability to execute the GRANT statement referencing the object.

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

The Grant method assigns permissions to one or more users or roles for the specified columns. When grantGrant is true, the grantee(s) specified are granted the ability to execute the GRANT statement referencing the object.

Grant(ObjectPermissionSet, String[], String[])

The Grant method assigns permissions to one or more users or roles for the specified columns.

Grant(ObjectPermissionSet, String, String[])

The Grant method assigns permissions to one or more users or roles for the specified columns.

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

The Grant method assigns permissions to one or more users or roles for the specified columns. When grantGrant is true, the grantee(s) specified are granted the ability to execute the GRANT statement referencing the object. Use the AsRole argument to specify the role under which role to execute the grant.

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

Parameters

permissions
ObjectPermissionSet
granteeNames
String[]
columnNames
String[]
grantGrant
Boolean
asRole
String

Applies to

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

The Grant method assigns permissions to one or more users or roles for the specified columns. When grantGrant is true, the grantee(s) specified are granted the ability to execute the GRANT statement referencing the object. Use the AsRole argument to specify the role under which role to execute the grant.

public void Grant (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permissions, string granteeName, string[] columnNames, bool grantGrant, string asRole);
abstract member Grant : Microsoft.SqlServer.Management.Smo.ObjectPermissionSet * string * string[] * bool * string -> unit
Public Sub Grant (permissions As ObjectPermissionSet, granteeName As String, columnNames As String(), grantGrant As Boolean, asRole As String)

Parameters

permissions
ObjectPermissionSet
granteeName
String
columnNames
String[]
grantGrant
Boolean
asRole
String

Applies to

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

The Grant method assigns permissions to one or more users or roles for the specified columns. When grantGrant is true, the grantee(s) specified are granted the ability to execute the GRANT statement referencing the object.

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

Parameters

permissions
ObjectPermissionSet
granteeNames
String[]
columnNames
String[]
grantGrant
Boolean

Applies to

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

The Grant method assigns permissions to one or more users or roles for the specified columns. When grantGrant is true, the grantee(s) specified are granted the ability to execute the GRANT statement referencing the object.

public void Grant (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permissions, string granteeName, string[] columnNames, bool grantGrant);
abstract member Grant : Microsoft.SqlServer.Management.Smo.ObjectPermissionSet * string * string[] * bool -> unit
Public Sub Grant (permissions As ObjectPermissionSet, granteeName As String, columnNames As String(), grantGrant As Boolean)

Parameters

permissions
ObjectPermissionSet
granteeName
String
columnNames
String[]
grantGrant
Boolean

Applies to

Grant(ObjectPermissionSet, String[], String[])

The Grant method assigns permissions to one or more users or roles for the specified columns.

public void Grant (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permissions, string[] granteeNames, string[] columnNames);
abstract member Grant : Microsoft.SqlServer.Management.Smo.ObjectPermissionSet * string[] * string[] -> unit
Public Sub Grant (permissions As ObjectPermissionSet, granteeNames As String(), columnNames As String())

Parameters

permissions
ObjectPermissionSet
granteeNames
String[]
columnNames
String[]

Applies to

Grant(ObjectPermissionSet, String, String[])

The Grant method assigns permissions to one or more users or roles for the specified columns.

public void Grant (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permissions, string granteeName, string[] columnNames);
abstract member Grant : Microsoft.SqlServer.Management.Smo.ObjectPermissionSet * string * string[] -> unit
Public Sub Grant (permissions As ObjectPermissionSet, granteeName As String, columnNames As String())

Parameters

permissions
ObjectPermissionSet
granteeName
String
columnNames
String[]

Applies to