Scenario: Our install package used to add User DSN. We changed this to install System DSNs due to Terminal Servers and Citrix.
The problem is that some of these old User DSNs are floating around, and our application automatically chooses the User before the System and the connection info has changed as we upgraded server software.
I guess my question is, is there a way to force the application to use the System DSN over the User DSN if duplicates exist?
Our application is written in PowerBuilder 10.5 and we use SQL Anywhere 10.0.1.
Thanks, Calvin
See RegistryValues() in the PowerBuilder Help. The following isn’t exactly what you want but it does show a couple of working calls…
Another suggestion is to read the connection information from whichever DSN you want, and then use a ‘DSN-less’ connection, to avoid ‘picking the wrong DSN’.
Breck