Avatar of Saxitalis
Saxitalis
 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!
.NET ProgrammingC#

Avatar of undefined
Last Comment
Éric Moreau

8/22/2022 - Mon
Kalpesh Chhatrala

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
Éric Moreau

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck