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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running dts from procedure 1

Status
Not open for further replies.

SteveWilson

Programmer
Oct 9, 2003
2
GB
Hi

Does anyone know if it possible to run dts packages from stored procedures, and if so how?

Thanks In advance

Steve
 
Yes it is. One option is to use xp_cmdshell to execute the dtsrun utility and start your package:

Code:
EXEC master..xp_cmdshell 'dtsrun /Smyserver /E /Nmypackage'

(The /E switch uses a trusted connection to myserver.)

--James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top