For sure this is a nice way of launching a package when you have no SQLAgent in your system ( express edtn )
But if you have SQLAgent in your instance, I would prefer to have your sproc or service broker starting a job that runs your wanted package.
Mainly for the management and up reasons that come with sqlagent.
e.g. you can disable a job (works only if you don't use sp_startjob ! ) , have a look at how many times it has been executed and when, ...
You wouldn't need to open xp_cmdshell !
cfr "help to tighten use of cmdshell or sp_start_job" http://www.sqlservercentral.com/scripts/Miscellaneous/31032/
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me