-
Chris Goedde
- PowerBuilder
- Friday, 7 February 2025 04:34 PM UTC
We are switching the database for our application from SqlAnywhere to PostgreSQL. I am having a hard time building the connection string to the database without using the DSN in the registry. I am open to using an ODBC connection, but I would prefer to use ADO.Net.
This works from an ODBC perspective, but it is using the DSN
SQLCA.DBMS = "ODBC"
SQLCA.DbParm = "Connectstring='DSN=My-PG;Database=DBName;Host=localhost;Port=5432;Username=postgres;Password=pwd'"
As I said, I would prefer to use ADO.Net if possible, but I am having an even harder time getting started in that direction.
SQLCA.DBMS = "ADO.NET"
I am able to connect in the Database Painter in PB 22 R2 using either ODBC or ADO.Net. Both of them however, are using the DSN to be able to connect.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.