Server.Grant Method

Definition

Overloads

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

Grant(ServerPermissionSet, String)

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

Parameters

permission
ServerPermissionSet
granteeName
String

Applies to

Grant(ServerPermissionSet, String[])

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

Parameters

permission
ServerPermissionSet
granteeNames
String[]

Applies to

Grant(ServerPermissionSet, String, Boolean)

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

Parameters

permission
ServerPermissionSet
granteeName
String
grantGrant
Boolean

Applies to

Grant(ServerPermissionSet, String[], Boolean)

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

Parameters

permission
ServerPermissionSet
granteeNames
String[]
grantGrant
Boolean

Applies to

Grant(ServerPermissionSet, String, Boolean, String)

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

Parameters

permission
ServerPermissionSet
granteeName
String
grantGrant
Boolean
asRole
String

Applies to

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

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

Parameters

permission
ServerPermissionSet
granteeNames
String[]
grantGrant
Boolean
asRole
String

Applies to