IColumnPermission.Grant IColumnPermission.Grant IColumnPermission.Grant Method

Definition

Overloads

Grant(ObjectPermissionSet, String[], String[], Boolean, String) Grant(ObjectPermissionSet, String[], String[], Boolean, String) 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) Grant(ObjectPermissionSet, String, String[], Boolean, String) 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) Grant(ObjectPermissionSet, String[], String[], Boolean) 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) Grant(ObjectPermissionSet, String, String[], Boolean) 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[]) Grant(ObjectPermissionSet, String[], String[]) Grant(ObjectPermissionSet, String[], String[])

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

Grant(ObjectPermissionSet, String, String[]) Grant(ObjectPermissionSet, String, String[]) 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) Grant(ObjectPermissionSet, String[], String[], Boolean, String) 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

granteeNames
String[]
columnNames
String[]
grantGrant
Boolean Boolean Boolean

Grant(ObjectPermissionSet, String, String[], Boolean, String) Grant(ObjectPermissionSet, String, String[], Boolean, String) 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

granteeName
String String String
columnNames
String[]
grantGrant
Boolean Boolean Boolean

Grant(ObjectPermissionSet, String[], String[], Boolean) Grant(ObjectPermissionSet, String[], String[], Boolean) 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

granteeNames
String[]
columnNames
String[]
grantGrant
Boolean Boolean Boolean

Grant(ObjectPermissionSet, String, String[], Boolean) Grant(ObjectPermissionSet, String, String[], Boolean) 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

granteeName
String String String
columnNames
String[]
grantGrant
Boolean Boolean Boolean

Grant(ObjectPermissionSet, String[], String[]) Grant(ObjectPermissionSet, String[], String[]) 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

granteeNames
String[]
columnNames
String[]

Grant(ObjectPermissionSet, String, String[]) Grant(ObjectPermissionSet, String, String[]) 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

granteeName
String String String
columnNames
String[]

Applies to