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
2009-04-16 00:29:12
Depending on the driver more parameters may be needed in the connection string
ojblass
2009-04-16 00:30:43
Yes, but the concept works. If the User DSN is completely configured, though, this will often be enough.
Reed Copsey
2009-04-16 00:51:22
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
2009-04-16 01:22:10