SHARE
Facebook X Pinterest WhatsApp

DSNGen – Another Tool For the Toolbox

Written By
thumbnail
Andy Warren
Andy Warren
Feb 2, 2001

This
free utility lets you build multiple DSN’s (system, user, or file) quickly. It’s not a tool you’ll use everyday, but when do use need it, it’s a real
timesaver. Let’s walk through how to use it and how it works.



(enlarge)


Step
#1 – Connect to Server and Get List of Databases

Here
I’m using SQL-DMO to retrieve a list of SQL Servers that are active on your
network. See my article More DMO for more information about how this works.
Once you
select a server, click the ‘Get List of Databases’  button to populate the
Available Databases list box. This step also uses DMO to retrieve the list of
databases. It requires that you be able to establish a trusted connection to the server. I
opted not to support SQL logins for  two reasons; one is that I think most DBA’s
will be using a trusted connection anyway, and two, I’m not big on  entering the
sa password into free utilities I’ve downloaded – bet you aren’t either!

 

 

Step
#2 – Select Databases


Now
that you’ve got your list of databases, you can select the ones for which you
need DSN’s. You can select multiple databases at once, using
shift-click or control-click. The four buttons in the middle let you move either
the selected items or all items from one list to the other.

 

 


Continue
Reading about DSNGen
       Go
directly to the Download page

Recommended for you...

Best Online Courses to Learn SQL
Ronnie Payne
Sep 23, 2022
Best Courses for Database Administrators
Ronnie Payne
Jul 22, 2022
Tip 74 – Changing Cost Threshold for Parallelism
Gregory Larsen
Feb 24, 2021
How Many Databases Can You Name?
Brad Jones
May 11, 2020
Database Journal Logo

DatabaseJournal.com publishes relevant, up-to-date and pragmatic articles on the use of database hardware and management tools and serves as a forum for professional knowledge about proprietary, open source and cloud-based databases--foundational technology for all IT systems. We publish insightful articles about new products, best practices and trends; readers help each other out on various database questions and problems. Database management systems (DBMS) and database security processes are also key areas of focus at DatabaseJournal.com.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.