October 21, 2002 at 9:32 am
Hi all,
Can you execute a local package from a stored procedure.
Thanks
October 21, 2002 at 10:13 am
Yes, but if you're staying pure T-SQL, you'll have to use xp_cmdshell and execute the package using DTSRun.
K. Brian Kelley
http://www.truthsolutions.com/
Author: Start to Finish Guide to SQL Server Performance Monitoring
http://www.netimpress.com/shop/product.asp?ProductID=NI-SQL1
K. Brian Kelley
@kbriankelley
October 21, 2002 at 4:53 pm
Thanks, Brian,
What do you mean by pure Tranact SQL?. What I really would like to do is execure the package from a Access project. tought I could do so by setting up an Sproc, to be invoiked by the Access project, is theire a better way?
Thanks
October 21, 2002 at 5:09 pm
You can use the DTSPackage Library. The DTS Package Library exposes objects that can be invoked using VB code in Access to execute the DTS packages. Refer to SQL Books Online and look under DTS Programming for detailed info and syntax.
October 22, 2002 at 7:35 am
Check out my article at:
http://www.sqlservercentral.com/columnists/jwiner/dts.asp
It is another way using all TSQL to run your DTS package.
October 22, 2002 at 1:41 pm
Hi Dude,
Check this site, it worked for me...you can execute the DTS package from a stored procedure using OLE Stored Procedures.
October 22, 2002 at 2:53 pm
Thanks much for all your help.
Richard
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply