skip to main content
OpenAccess SDK SQL Engine Core Functions API : Function Reference : dam_getUser/dam_getUserW
 

dam_getUser/dam_getUserW

This function returns the user information in the CREATE USER and DROP USER commands of the IP DCL function.
int dam_getUser(
DAM_HSTMT hstmt,
char *pcCatalog,
char *pcUserName,
char *pcPassword,
char *pcUserData)

int dam_getUserW(
DAM_HSTMT hstmt,
OAWCHAR *pcCatalog,
OAWCHAR *pcUserName,
OAWCHAR *pcPassword,
OAWCHAR *pcUserData)

Command Syntax

CREATE USER UserName [IDENTIFIED
{BY Password | EXTERNALLY}]
[USERDATA 'UserData']
DROP USER UserName
Table 160. Parameters for dam_getUser/dam_getUserW
Parameter
Type
Description
IN
hstmt
DAM_HSTMT
The statement handle.
OUT
pcCatalog
char *
OAWCHAR *
The database catalog. Pass in a buffer of 128 characters.
pcUserName
char *
OAWCHAR *
The name of the user. Pass in a buffer of 128 characters.
pcPassword
char *
OAWCHAR *
The password of the user. The password string is DAM_OPS_PASSWORD, to indicate that the password was specified as EXTERNALLY. Pass in a buffer of 128 characters.
pcUserData
char *
OAWCHAR *
The user data string. 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.