skip to main content
OpenAccess SDK SQL Engine Core Functions API : Function Reference : dam_getRole and getRoleW
 

dam_getRole and getRoleW

This function returns the user information in the CREATE ROLE and DROP ROLE commands of the IP DCL function.
int dam_getRole(
DAM_HSTMT hstmt,
char * pcCatalog,
char * pcRoleName)

int dam_getRoleW(
DAM_HSTMT hstmt,
OAWCHAR * pcCatalog,
OAWCHAR * pcRoleName)

Command Syntax

CREATE ROLE RoleName
DROP USER RoleName
Table 152. Parameters for dam_getRole and getRoleW
Parameter
Type
Description
IN
hstmt
DAM_HSTMT
The statement handle.
OUT
pcCatalog
char *
OAWCHAR *
The database catalog. Pass in a buffer of 128 characters.
pcRoleName
char *
OAWCHAR *
The name of the role. Pass in a buffer of 128 characters.
RETURN
int
Status of the function call:
DAM_SUCCESS on success
DAM_FAILURE on error
DAM_NO_DATA_FOUND on no data retrieved.