ODBC - DSN

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ODBC - DSN

Günther Schmidt
Hi,

does anybody know how to ask Windows for a list of available DSNs?

Günther


Reply | Threaded
Open this post in threaded view
|

Re: ODBC - DSN

Chris Uppal-3
Günther,

> does anybody know how to ask Windows for a list of available DSNs?

Does DBConnection class>>enumerateDataSources do what you want ?

    -- chris


Reply | Threaded
Open this post in threaded view
|

Re: ODBC - DSN

Günther Schmidt
Chris Uppal schrieb:
> Günther,
>
>> does anybody know how to ask Windows for a list of available DSNs?
>
> Does DBConnection class>>enumerateDataSources do what you want ?
>
>     -- chris
>
>
Thanks Chris,

that works nicely.

Günther


Reply | Threaded
Open this post in threaded view
|

Re: ODBC - DSN

Dmitry Zamotkin
In reply to this post by Günther Schmidt
And there is a *hacker* way :)

HKLM\Software\ODBC\ODBC.INI\ODBC Data Sources\

--
Dmitry Zamotkin

Günther Schmidt wrote:
> Hi,
>
> does anybody know how to ask Windows for a list of available DSNs?
>
> Günther