Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

Connecting Visual Cobol to a Oracle database in Visual Studio 2010

$
0
0

Hello !

I'm using:

- Visual Cobol 2.2

- Visual Studio 2010

- 32 bits

- Oracle Client 11.2.0

The Cobol program is compiled ok.

On Project Properties, SQL, the preprocessor being used is OpenESQL and the directive SQL(DBMAN=ODBC) is set.

The driver Microsoft ODBC for Oracle is installed.

I added the connection Oracle Database (Oracle ODP.NET) and tested the connection. It's ok.

I can see the database, the tables, and access them.

But when I try to run the program I got a -19703 in this command:

EXEC SQL
            CONNECT :WS-USERNAME IDENTIFIED BY :WS-PASSWD
END-EXEC.

What am I doing wrong ?

Thanks in advance and sorry for any English mistakes.


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>