Solved

How do I execute a DTS package using T-SQL in Query Analyzer?

Posted on 2002-07-08
3
171 Views
Last Modified: 2008-02-20
How do I execute a DTS package using T-SQL? I'm gonna use it to call the package from an application using OLE-DB/ODBC.
0
Comment
Question by:yurrea
  • 2
3 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 100 total points
ID: 7139859
You have 2 options:
* create a job that runs the package, and to start the job use this sample:
exec msdb..sp_start_job @job_name='StartDTS_yourdts'

* run the DTSRUN command line tool (sample):
exec xp_cmdshell 'DTSRUN /N yourdts'

CHeers
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 7139860
FYI, i do prefer the first option...
0
 

Author Comment

by:yurrea
ID: 7139918
Hey thanks angelIII! That was a great help. :)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
I have a large data set and a SSIS package. How can I load this file in multi threading?
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.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

856 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