Database.Grant Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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
- permission
- DatabasePermissionSet
- granteeNames
- String[]
- grantGrant
- Boolean
- asRole
- String
Applies to
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
- permission
- DatabasePermissionSet
- granteeName
- String
- grantGrant
- Boolean
- asRole
- String
Applies to
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
- permission
- DatabasePermissionSet
- granteeNames
- String[]
- grantGrant
- Boolean
Applies to
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
- permission
- DatabasePermissionSet
- granteeNames
- String[]
Applies to
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
- permission
- DatabasePermissionSet
- granteeName
- String
Applies to
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
- permission
- DatabasePermissionSet
- granteeName
- String
- grantGrant
- Boolean