Solved

Export current DSN settings

Posted on 2003-11-27
2
511 Views
Last Modified: 2012-08-13
Is there a way to save the current collection of DSN settings to be re-installed after a server rebuild?
0
Comment
Question by:juststeve
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:juststeve
ID: 9831830
system DSNs, that is
0
 
LVL 30

Accepted Solution

by:
nmcdermaid earned 250 total points
ID: 9832449
They are in the registry.

1. Go into Regedit (Start/Run, then type Regedit)
2. Find this Hive: HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI
3. Select your ODBC connection then press Registry/Export Regitry File and export it
4. Select this Hive: HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources
5. Press Registry/Export Regitry File and export it
6. Open the REG file created in step 5 and Copy the single line that has your ODBC connection in it
7. Open the REG file created in step 3 and Paste the single line that has your ODBC connection in it (anywhere after the first line) then save this file
8. When you double click on the file you created in step 7, it will add your ODBC connection to the registry.

You can grab all of your DSN's this way and put them in one file.

0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question