Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you programmatically create a System DSN using Powershell or .NET?

How do you create a System DSN in the control panel on ones PC using Powershell or .NET?

like image 387
Chad Avatar asked Sep 24 '11 00:09

Chad


1 Answers

This can be done with some registry edit. Refer this link:

http://derek858.blogspot.com/2010/02/create-32-bit-system-dsn-with.html

Note that for 64-bit you will be using HKEY_LOCAL_MACHINE\Software\Odbc\Odbc.ini\

like image 184
manojlds Avatar answered Nov 15 '22 14:11

manojlds