Has anybody been able to connect to Postgres from a mobile app?
The app works fine on Desktop and the PostgreSQL35W profile connects OK from both the ODBC admin and PowerServer`s Toolkit, but when the app is deployed to mobile, it doesn`t recognize the DSN name:
"key=value argument incorrect in ConnectString Parameter name: dsn".
I tried using both the name of the data source that was used when creating the SQLCA, and the name used by ODBC administrator (PosgreSQL35W). In both cases the result is the same. Any ideas?
Here is the connectstring I am using:
SQLCA.DBParm = "ConnectString='DSN=PostgreSQL35W;UID=postgres;PWD=sql' "
Thanks in advance for your thoughts :)
I did the change as you suggested and it worked right away.
Thumbs up :)
FYI: This is a tricky one as he PS Toolkit embedded in the PB IDE is like PB - a 32 bit App. As such, it uses PB's PostGreSQL ODBC connection so that during the "build" & generation part of the PS Web Application deployment, the PS Toolkit it can verify your SQL. However, PS itself is a 64bit server app and as such uses its own native driver to connect to the PostGreSQL DBMS. You have to remember to treat each piece differently when connecting to a DBMS. I hope that explains (clarifies) the confusion a bit more for you and others reading this thread.
Regards ... Chris