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
 Import/Export (DTS) and Replication (2000)
 STORED PROCEDURE TO RUN DTS PACKAGE

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-11-18 : 08:04:36
CRK writes "I WOULD LIKE RUN A DTS PACKAGE (WHICH IS ON MY SQL SERVER) FROM MY ETL TOOL BY USING STORED PROCEDURE

COULD U PLEASE HELP ME ON THIS

THANKS"

surendrakalekar
Posting Yak Master

120 Posts

Posted - 2005-11-18 : 09:01:43
It will be better if you provide some detail information about your DTS package and why you want to run it through sp.
Is it possible to schedule your DTS package?

Surendra
Go to Top of Page

Vivaldi
Constraint Violating Yak Guru

298 Posts

Posted - 2005-11-18 : 09:13:00
check out DTSRUN in tsql help

________________________________________________

Drinking German Beer... fun.
Listening to an accordian player play ACDC...priceless
Go to Top of Page

lizak
Starting Member

12 Posts

Posted - 2005-11-18 : 09:21:45
See the sample sp below. Be aware you need to understand the security aspects of this approach as it usually stumps people until they figure that out. There are a couple of postings on this topic if you look for them.


CREATE PROCEDURE your_stored_procedure AS

exec master.dbo.xp_cmdshell 'dtsrun -E -Syour_server -N"your_package"'
GO
Go to Top of Page
   

- Advertisement -