Posted on 2001-06-15
Anyone know how I can get a list of the ODBC DSN's on my machine? I'd like the user to be able to select a database from a list, but I want to avoid hardcoding the DSN name Strings into a list or having to write a properties file or resource bundle. I'd rather try pulling them on the fly from the local environment settings if I can.
Has anyone done this before? Thanks!