Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Export current DSN settings

Posted on 2003-11-27
2
Medium Priority
?
523 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 1000 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

596 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