Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

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

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
yurrea
Asked:
yurrea
  • 2
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
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
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
FYI, i do prefer the first option...
0
 
yurreaAuthor Commented:
Hey thanks angelIII! That was a great help. :)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now