Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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

Posted on 2011-10-04
Medium Priority
Last Modified: 2013-12-16
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?

Question by:Saxitalis
LVL 16

Expert Comment

by:Kalpesh Chhatrala
ID: 36914730
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.

LVL 70

Accepted Solution

Éric Moreau earned 2000 total points
ID: 36916449

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month11 days, 18 hours left to enroll

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question