Code: Show/Hide /* --------------------------------------------------------------------------
logon to ORACLE, and open the cursors. The program exits if any errors occur. -------------------------------------------------------------------------- */ strcpy((char *)uid.arr,"SCOTT"); uid.len = (short) strlen((char *)uid.arr); strcpy((char *)pwd.arr,"TIGER"); pwd.len = (short) strlen((char *)pwd.arr); EXEC SQL WHENEVER SQLERROR GOTO errexit; EXEC SQL CONNECT :uid IDENTIFIED BY :pwd; |