dbTalk Databases Forums  

SP to Run DTS

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss SP to Run DTS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brian Potterton
 
Posts: n/a

Default SP to Run DTS - 06-03-2004 , 06:46 AM






Hi al

How do i run a DTS package from a SP, passing a Parameter

Thank

Brian
MCSE AACS

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: SP to Run DTS - 06-03-2004 , 07:06 AM






You can either use xp_cmdshell and DTSRUN or you can use the sp_OA*
procedures.

Have a look here.

Execution
(http://www.sqldts.com/default.aspx?104)

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Brian Potterton" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi all

How do i run a DTS package from a SP, passing a Parameter?

Thanks

Brian
MCSE AACS



Reply With Quote
  #3  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: SP to Run DTS - 06-03-2004 , 07:10 AM



You can use xp_cmdshell and call dtsrun. You can build the
dtsrun command dynamically and use a global variable for the
parameter.
Another option would be to use the DTS Object model and OLE
Automation stored procedures (sp_OAxxxx procedures). You can
find an example of this at:
http://www.databasejournal.com/featu...le.php/1459181

-Sue

On Thu, 3 Jun 2004 04:46:05 -0700, Brian Potterton
<anonymous (AT) discussions (DOT) microsoft.com> wrote:

Quote:
Hi all

How do i run a DTS package from a SP, passing a Parameter?

Thanks

Brian
MCSE AACS


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.