views:

201

answers:

1

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

+2  A: 

Here is a tutorial describing the entire process.

Basically, you do:

OdbcConnection connection = new OdbcConnection("DSN=MyDataSourceName");
Reed Copsey
Depending on the driver more parameters may be needed in the connection string
ojblass
Yes, but the concept works. If the User DSN is completely configured, though, this will often be enough.
Reed Copsey
Awesome. Thanks Reed. I'll give it a try here in a bit but I'm confident it will work. Thank you for the quick response.
Max Schmeling