DTS How to... Obtain a List of DTS Packages | Database Journal

DTS How to… Obtain a List of DTS Packages

Written By
Darren Green
Darren Green
Nov 28, 1999
1 minute read

1 How to Obtain a List of DTS Packages


A common request is how to obtain a list of DTS Packages, to populate a list box for example.
The easiest way is to just query the system tables of the msdb database:

/* List Server Packages */
SELECT DISTINCT name FROM sysdtspackages
/* List Repository Packages */
SELECT DISTINCT Name, PackageID 
FROM TfmPackage INNER JOIN RTblNamedObj 
 ON tfmpackage.IntID = RTblNamedObj.IntID


N.B. The PackageID is very important for repository packages,
as it is required to identify and load the package.
Server packages can be loaded just using the name.


An alternative is to use SQL-NS. For an example of this see the sample:
  x:mssql7devtoolssamplessqlnsvbbrowse


There is also a relevant Microsoft Knowledge Base Article:

  • Article ID: Q241249
  • INF: How to Obtain a List of DTS Packages
  • http://support.microsoft.com/support/kb/articles/Q241/2/49.asp
  • 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. © 2026 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.