Max Schmeling
Max Schmeling

Reputation: 12509

How to get ODBC connection by name?

Given a User DSN how do I create an ODBC connection to that data source in .Net 3.5?

Upvotes: 0

Views: 588

Answers (1)

Reed Copsey
Reed Copsey

Reputation: 564413

Here is a tutorial describing the entire process.

Basically, you do:

OdbcConnection connection = new OdbcConnection("DSN=MyDataSourceName");

Upvotes: 4

Related Questions