Solved

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

Posted on 2002-07-08
3
174 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
[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
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

Turn Insights into Action

Communication across every corner of your business is essential to increase the velocity of your application delivery and support pipeline. Automate, standardize, and contextualize your communication processes with xMatters.

Question has a verified solution.

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

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…
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…
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.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

690 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