Board index » delphi » How to get the database's path of an alias that setup in ODBC

How to get the database's path of an alias that setup in ODBC

I know we can get the Database path by API dbiGetDirectory, or
use Database1.Directory,
but if i need to know a DB path setup up by ODBC Link(eg Path of a .mdb
file),
did delphi suuply any function?
 

Re:How to get the database's path of an alias that setup in ODBC


Quote
>but if i need to know a DB path setup up by ODBC Link(eg Path of a .mdb
>file),
>did delphi suuply any function?

Delphi does not provide a function for that.  For ODBC Delphi only knows the DSN
used.  Of course you can read the registry because that is where ODBC stores
these values
--
Brian Bushay (TeamB)
Bbus...@NMPLS.com

Other Threads