Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute DTS from SP

Status
Not open for further replies.

ScrewBalll

Programmer
Jan 14, 2005
18
GB
Hi there,
Just a quick question: Is there any way that you can execute a DTS package from a stored procedure? I'm pretty sure you can't but I just want to check to make sure.
Thanks
 
Yes. You can use xp_cmdshell to execute the DTSRun utility, eg:

Code:
EXEC master..xp_cmdshell 'dtsrun /S myserver /E /N "my package name"'

--James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top