How to create an ODBC Datasource programatically in C#

  • Thread starter Thread starter Mike Grishaber
  • Start date Start date
M

Mike Grishaber

Hello All,

Does anyone know how to programatically create an ODBC datasource in C#?

I want to access some comma separated files using ODBC, and I don't want to
go into the configuration utility for ODBC and create them manually.

Thanks in advance.

Mike
(e-mail address removed)
 
Just think about what an "ODBC datasource" is under the hood...
A "User" ODBC data source is just a text file, with the extension .dsn. Have
a look at an existing one to determine what to write and where...
A system data source is slightly more complex, but not much. It's just a
registry setting.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top