Highlighted
Absent Member.
Absent Member.
580 views

[archive] AcuSQL

[Migrated content. Thread originally posted on 13 November 2007]

We are trying to see if AcuSQL 7.2 will work for us. I can't seem to find a sample program that uses a Microsoft SQL Server. Am I missing it somewhere? I see ones for Access, DB2 and Oracle only. We're currently using AcuBench 7.2. Are there any out there? Thanks!
0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] AcuSQL

Many of the AcuSQL sample program are very similar in nature. To establish a connection to the database you'll have a COBOL statement similar to this:

EXEC SQL CONNECT TO :dsn-name as C1
USER :userid USING :passwd
END-EXEC
It is the dsn-name (A MSSQL data source name) pointing to your MSSQL database using the permision that userid (and appropriate password) have to connect to that database. You should be able to use the Access sample programs once you've set up the MSSQL database an client side data source name.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] AcuSQL

I was able to get this going. Thanks!

Another question though: We'll have multiple tables in the same database and would like to point them depending on what client's data we're accessing. Is there any way to use a variable for the table name in the SQL statements? I'd hate to have to set up a different database for each client and reconnect to it on the fly. Any alternatives.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.