%SYS
SQLRoleGrantOption Class Reference

Define the SQL RoleGrantOption mapping in the ^SYS global for whether a role is granted to the user/role with admin/grant option Mapping was added for SQL RoleGrantOption to take advantage of XML export. More...

Inheritance diagram for SQLRoleGrantOption:
Collaboration diagram for SQLRoleGrantOption:

Static Public Member Functions

_.Library.Status Export (_.Library.String FileName, _.Library.Integer NumExported)
 This method exports SQLRoleGrantOption records to a file in xml format. More...
 
_.Library.Status Import (_.Library.String FileName, _.Library.Integer NumImported, _.Library.Integer Flags)
 Import SQLRoleGrantOption records from an xml file. More...
 

Public Attributes

 Grantable
 Grantable - 1/0, can this role be granted by the user. More...
 
 RoleGranted
 RoleGranted - Role that was granted to the user/role. More...
 
 UserOrRole
 UserOrRole - User or Role the role was granted to. More...
 

Detailed Description

Define the SQL RoleGrantOption mapping in the ^SYS global for whether a role is granted to the user/role with admin/grant option Mapping was added for SQL RoleGrantOption to take advantage of XML export.

Member Function Documentation

◆ Export()

_.Library.Status Export ( _.Library.String  FileName,
_.Library.Integer  NumExported 
)
static

This method exports SQLRoleGrantOption records to a file in xml format.


Parameters:
Filename - Output file name
NumExported (byref) - Returns number of records exported.

◆ Import()

_.Library.Status Import ( _.Library.String  FileName,
_.Library.Integer  NumImported,
_.Library.Integer  Flags 
)
static

Import SQLRoleGrantOption records from an xml file.


Parameters:
FileName - Filename to import Role records from
NumImported (byref) - Returns number of records imported
Flags - Control import
Bit 0 - Do not import records, just return count
Note: On failure, no records will be imported

Member Data Documentation

◆ Grantable

Grantable

Grantable - 1/0, can this role be granted by the user.

 

◆ RoleGranted

RoleGranted

RoleGranted - Role that was granted to the user/role.

 

◆ UserOrRole

UserOrRole

UserOrRole - User or Role the role was granted to.