Hello,
Can anyone tell me how to execute a DTS from a stored procedure? The DBA at my company asked that we not use the xp_cmdshell command. I was hoping there was another way to execute the DTS.
Here is an article from Database Journal that describes how to run a DTS package from a stored procedure using the sp_OA OLE automation stored procedures.
The easiest way I have found is to schedule the dts job in SQl Agent. (You can do this by right clicking on the dts job in enterprise manager and selecting schedule.) Then going into the job in enterprise manager and deleting the schedule. You now have a job that will only run on request. You can then fire off the job by using a stored proc that looks similar to the following
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.