Hello,
DSN settings are stored in the Windows registry under HKEY_CURRENT_USER\SOFTWARE\ODBC\ODBCINST.INI.
Depending on what DB type you use, have the ODBC driver installed and check in the Registry.
For example, for ASA 17 I am just seeing you would need something like this at application startup:
RegistrySet("HKEY_CURRENT_USER\SOFTWARE\ODBC\ODBCINST.INI\SQL Anywhere 17", "Driver", RegString!, GetCurrentDirectory() + "dbodbc17.dll")
RegistrySet("HKEY_CURRENT_USER\SOFTWARE\ODBC\ODBCINST.INI\SQL Anywhere 17", "Setup", RegString!, GetCurrentDirectory() + "dbodbc17.dll")
RegistrySet("HKEY_CURRENT_USER\SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers", "SQL Anywhere 17", RegString!, "Installed")
Then, specify the proper Connection String to connect to the remote server, for example:
sqlca.DBParm = "ConnectString='UID=dba;PWD=sql;servername=servername;Driver={SQL Anywhere 17};Links=tcpip(host=192.168.1.116)'"
If you want to keep machine clean, use RegistryDelete() at application closure.
Best,
.m