dbTalk Databases Forums  

ODBC DSN List?

comp.databases comp.databases


Discuss ODBC DSN List? in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
robinson.william@gmail.com
 
Posts: n/a

Default ODBC DSN List? - 09-18-2006 , 06:49 AM






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.


Reply With Quote
  #2  
Old   
Joachim Pimiskern
 
Posts: n/a

Default Re: ODBC DSN List? - 09-19-2006 , 06:59 AM






<robinson.william (AT) gmail (DOT) com> schrieb:
Quote:
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





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.