![]() |
|
|
By: Edgewood Solutions | Read Comments (1) | Print Edgewood Solutions is a technology company focused on Microsoft SQL Server and founder of MSSQLTips.com. Related Tips: 1 | 2 | 3 | 4 | More |
|
Problem
With the many changes from SQL Server 2000 to 2005, the Extraction, Transform, and Load process in many respects has changed the most. Even the name changed from Data Transformation Services in SQL 2000 to SQL Server Integration Services in SQL 2005. Not only did the product change, but so did the method for executing packages.
Solution
In SQL Server 2000 and 2005 there are a number of ways to execute a package outside of Enterprise Manager and Query Analyzer:
SQL Server 2000
1. DTSRUNUI
Type dtsrunui from either a command prompt or Run dialog box, which opens the following GUI interface:

This interface gives you the option of executing a package from a SQL Server stored file (in msdb), a Meta Data Services file, or a Structured Storage File (*.dts stored in the File System). If you choose SQL Server or Meta Data Services as the source of the package and have a named instance, replace (local) with the <server_name>\<instance_name>.
You can also obtain the DTS command-line statement by clicking on the "Advanced" button next to the package name:


2. DTSRUN
Type dtsrun from a Command Prompt (can be run from any command prompt without having to navigate to a particular folder). A series of switches are available:
Package operation (overrides stored Package settings):
DTSRun action (default is to execute Package):
Here is what is seen in the command prompt window when running a package using DTSRUN

SQL Server 2005
In SQL Server 2005 the GUI and command-line options for package execution are still available, but the syntax and switches have changed somewhat.
1. DTSEXECUI
Type dtexecui from either a command prompt or Run dialog box, which opens the Execute Package GUI interface:

Note that there are many more options in this GUI compared with the one for SQL 2000. If you wish to copy the command-line statement to use in dtexec, click on Command Line section:

2. DTEXEC
Use dtexec from the Command Prompt by typing in dtsexec (can be run from any command prompt with having to navigate to a particular folder). A series of switches are available (the following information was obtained by typing dtexec /? in the command prompt):

Next Steps
| Share: | Share | Tweet |
|
![]() |
![]() |
Free SQL Server Learning |
| Wednesday, August 27, 2008 - 9:29:25 PM - rb_talk | Read The Tip |
|
Hi, There is a small typo error in this article. Instead of dtexecui.exe its mentioned as dtsexecui.exe. Thanks, Rajesh |
|
|
privacy | disclaimer | copyright | advertise | about authors | contribute | feedback | giveaways | user groups Some names and products listed are the registered trademarks of their respective owners. Edgewood Solutions LLC | MSSharePointTips.com | MSSQLTips.com |