Retrieving ODBC information from the registry using COM/ActiveX

  • Thread starter Thread starter robinson.william
  • Start date Start date
R

robinson.william

Hi all,

Does anyone know how to retrieve ODBC information (path, DSN) from the
registry using COM or ActiveX?
 
Latest reports suggest that it was <[email protected]> in message
who said
something like...
Hi all,

Does anyone know how to retrieve ODBC information (path, DSN) from the
registry using COM or ActiveX?

There are a variety of ways available to read information contained in the
registry. Most languages include that capability (whether it's via an
activex control or otherwise). It really depends on the particular language
you are trying to work with.

You could perhaps start by browsing manually the ODBC information at

HKEY_CURRENT_USER\Software\ODBC
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC

to identify the keys you are after, and then set about translating that into
code.

(start > run > regedit)

Jon
 
Jon said:
Latest reports suggest that it was <[email protected]> in message
who said
something like...

There are a variety of ways available to read information contained in the
registry. Most languages include that capability (whether it's via an
activex control or otherwise). It really depends on the particular language
you are trying to work with.

You could perhaps start by browsing manually the ODBC information at

HKEY_CURRENT_USER\Software\ODBC
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC

to identify the keys you are after, and then set about translating that into
code.

(start > run > regedit)

Jon

Thanks Jon,

What i'm trying to do is to have a user select a data base via getting
the path. From there the program would find the database's ODBC DSN.
 
Back
Top