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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Vijaya KadiyalaRank #1,085 · 1.8K reputationPosted Feb 10, 2009, 9:02 AM EST
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