Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 executing DTS from stored procedure
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Yak Posting Veteran

78 Posts

Posted - 05/01/2003 :  01:37:39  Show Profile  Reply with Quote
Dear all,

How to executing DTS from stored procedure??



Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 05/01/2003 :  03:15:17  Show Profile  Visit Merkin's Homepage  Reply with Quote

There are two basic ways to do this.

1. Use XP_CmdShell to run the DTSRUN.exe program. I wouldn't recommend that as it means giving SA access.

2. Create a job that runs the DTS package, but don't give it a schedule. Then use the sp_start_job proc from the MSDB database to run the job.

Go to Top of Page


United Kingdom
12543 Posts

Posted - 05/01/2003 :  09:59:19  Show Profile  Visit nr's Homepage  Reply with Quote
Can also use sp_oacreate
sp_oacreate Load DTS

Only really useful if you want to change some properties from the SP before running the package.

Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000