Written by

Developer
Question Matheus Augusto · Oct 4, 2024

Connection problem with %SQLGatewayConnection

I'm trying to make a connection to an external database using %SQLGatewayConnection, but the connection always fails. DSN properly configured. I try to make the same connection through isql in bash, and the connection is successful.

This same connection fails in Caché.

Product version: Caché 2018.1

Comments

Matheus Augusto  Oct 4, 2024 to David Hockenbroch

ERROR #6022: Gateway failed: DSN/User Connect.

0
David Hockenbroch  Oct 7, 2024 to Matheus Augusto

If you test the connection in your System Management Portal, does it fail there too?

0
Matheus Augusto  Oct 7, 2024 to David Hockenbroch

Returns successful connection even with incorrect data.

0
Matheus Augusto · Oct 14

The solution was to connect using the portal's "SQL Gateway Connections" with JDBC (Figure 1). After configuring this connection, it was possible to link the table within CACHÉ in the SQL area using "Wizards -> Link Table" (Figure 2). The table to be linked must have a sequence.

Figure 1.

Figure 2

0