Discussion:
ODBC DSN List?
(too old to reply)
r***@gmail.com
2006-09-18 11:49:30 UTC
Permalink
Hey All,

I'm writing a program in c-like language (VTS) which accesses an ODBC
database with SQL commands. In order to use the SQL commands you must
connect to the database using a ConnectODBC() command in the VTS
language. The connect command requires the DSN name (not the path of
database) in order to connect. It's a real pain to go into
administrative tools each time to get the right name.

I was wondering if there was a way to bring up a list of the ODBC data
sources on the system (like in the windows Microsoft ODBC Data Source
Administrator), like in a DLL file or by a SQL command.
Joachim Pimiskern
2006-09-19 11:59:24 UTC
Permalink
Post by r***@gmail.com
I was wondering if there was a way to bring up a list of the ODBC data
sources on the system (like in the windows Microsoft ODBC Data Source
Administrator), like in a DLL file or by a SQL command.
There's a sample for Delphi how to get the
list from the registry.

http://www.swissdelphicenter.ch/de/showcode.php?id=1131

Regards,
Joachim

Continue reading on narkive:
Loading...