Link to home
Start Free TrialLog in
Avatar of John Porter
John PorterFlag for United States of America

asked on

Create a System DSN ODBC Connection to SQL Server on Windows 7 using C#

Hello Experts,

I set up a DSN connectiosn in windows (ODBC Data Source Administrator) quite often to connect to my SQL Server Databases...

I would like to do this programatically using C# on Windows 7 machines.

Does anyone know how to do this?

Thanks!
Avatar of Kalpesh Chhatrala
Kalpesh Chhatrala
Flag of India image

you can use SQL Server with C# without using DSN. then why do you create DSN in System ?

any Special reason ?

check below related thread.

https://www.experts-exchange.com/questions/20934958/How-to-create-PROGRAMMATICALLY-DSN-CONNECTION-USING-C-VERY-URGENT.html
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial