dam_getRole and getRoleW
- Last Updated: May 12, 2026
- 1 minute read
- OpenAccess SDK
- Version 8.1
- Documentation
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
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. |