OCUBE
asked on
How to create system DSN using command line ?
How to create DSN on local pc (ODBC) using command line ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
That is much better, but you need to know the complete driver name (should be easy, it's the same as shown when creating a DSN) and DSN string (can be obtained by looking to www.connectionstrings.com).
HKLM\Software\ODBC\ODBC.In
HKLM\Software\ODBC\ODBC.in
That way you get all relevant settings. In the first export, you only need the line for the single DSN.
Either combine both edited exports to one reg file, and import it directly, or use reg import (whole file) or multiple reg add (single key).