I'm new to C#, just switching from VB .NET. I have some code in VB that lists all the available DSNs. Does anyone have any C# code that will list all the DSNs on the machine?
Thanks,
Bernie
I'm new to C#, just switching from VB .NET. I have some code in VB that lists all the available DSNs. Does anyone have any C# code that will list all the DSNs on the machine?
Thanks,
Bernie
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vijaya KadiyalaPosted Feb 10, 2009, 2:02 PM
If you prefer managed spelunking in the Registry to calling unmanaged code,
you could always go directly to the source. System Data Sources are stored
in HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources
Thanks
Vijaya Kadiyala
http
://dotnetvj.blogspot.com