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

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Execute a DTS using a stored procedure

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-10-19 : 07:47:02
Cleveland Steamer writes "I know how to execute Sprocs using a DTS package, but how can I execute a DTS using a SPROC? Can you provide a generic sample? -thanks"

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-10-19 : 07:54:12
use xp_cmdshell to execute dtsrun



KH

Go to Top of Page

Lumbago
Norsk Yak Master

3271 Posts

Posted - 2006-10-19 : 07:54:48
CREATE PROCEDURE dbo.myDTSRun
AS
BEGIN

DECLARE @Cmd varchar(500)
SET @CMD = 'dtsrun ...'
EXEC xp_cmdshell @Cmd

END

--
Lumbago
"Real programmers don't document, if it was hard to write it should be hard to understand"
Go to Top of Page
   

- Advertisement -