We have Sybase Adaptive Server version 12.0 on Windows NT 4.0. The connect statement works in isql and we are able to use the user tables (select, etc.). However when running an application program compiled with SQL/COBOL (cobpre and then Merant NetExpress 3.1 for Windows NT), the Connect statement does not work. The syntax used is:
EXEC SQL CONNECT :USERID IDENTIFIED BY ASSWO END-EXEC.
The Sybase pre-compiler translates the call as
CALL "CSBCTXGLOBAL" USING SQL--CS-VERSION
SQL--RETCODE SQL--CTX OF SQL--HANDLES
IF SQL--RETCODE NOT EQUAL CS-SUCCEED
MOVE 25001 TO SQL--INTRERR
PERFORM SQL--CTXERR
END-IF
SQL-RETCODE is returned as 0 and not equal to CS-SUCCEED (which is 1). We have also tried changing the connect by specifying USING :SVR and/or specifying some pre-compiler options such as –U –P –D –S (user, password, database, server) or –e. The result is always the same, fail on this call to CSBCTXGLOBAL.
Thanks for any tips on how to resolve this problem.
EXEC SQL CONNECT :USERID IDENTIFIED BY ASSWO END-EXEC.
The Sybase pre-compiler translates the call as
CALL "CSBCTXGLOBAL" USING SQL--CS-VERSION
SQL--RETCODE SQL--CTX OF SQL--HANDLES
IF SQL--RETCODE NOT EQUAL CS-SUCCEED
MOVE 25001 TO SQL--INTRERR
PERFORM SQL--CTXERR
END-IF
SQL-RETCODE is returned as 0 and not equal to CS-SUCCEED (which is 1). We have also tried changing the connect by specifying USING :SVR and/or specifying some pre-compiler options such as –U –P –D –S (user, password, database, server) or –e. The result is always the same, fail on this call to CSBCTXGLOBAL.
Thanks for any tips on how to resolve this problem.