int KISAMConnect(CHAND *pChand, char *szDsn, char *szUserid, char *szPwd)
Parameter | Type | Purpose |
pChand | CHAND * | location to receive the connection handle established by this call |
szDSN | char * | connection string specifying the database required. Currently this is not sed and should be NULL. |
szUserid | char * | userid required to log into database. Currently this is not required and should be NULL. |
szPwd | char * | password required to log into database. Currently this is not required and should be NULL. |
This logs into a specific database and allocates a connection handle by updating the address passed as pChand. KISAM uses Unix security so the connection string szDsn, the userid szUserid and the password string szPwd are not currently used and must be passed as NULL.
This call must be performed before any handle can be allocated by KISAMAllocHandle. The resources used for the connection should be freed with a call to KISAMDisconnect before the program terminates. It is an error to connect twice in the same program.