dbTalk Databases Forums  

Execute dts package from stored procedure

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


Discuss Execute dts package from stored procedure in the microsoft.public.sqlserver.dts forum.



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

Default Execute dts package from stored procedure - 06-11-2004 , 07:19 AM






Is there any way to execute dts package from stored procedure? If there is, please specify how.

Thank you.

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

Default Re: Execute dts package from stored procedure - 06-11-2004 , 07:51 AM






Here you go


Execute a package from T-SQL
(http://www.sqldts.com/default.aspx?210)

--
--

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


"she" <she (AT) discussions (DOT) microsoft.com> wrote

Quote:
Is there any way to execute dts package from stored procedure? If there
is, please specify how.

Thank you.



Reply With Quote
  #3  
Old   
Patrick Charles
 
Posts: n/a

Default Re: Execute dts package from stored procedure - 06-11-2004 , 09:16 AM



--Declaring variabl
DECLARE @objdts in

--Creating objec
EXEC sp_OACreate 'DTS.Package', @objdts OUTPU

--Loading DTS storage file to objec
EXEC sp_OAMethod @objdts, 'LoadFromStorageFile', NULL, 'C:\mypackage.dts', '

EXEC sp_OAMethod @objdts, 'Execute


----- Allan Mitchell wrote: ----

Here you g


Execute a package from T-SQ
(http://www.sqldts.com/default.aspx?210

--
--

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


"she" <she (AT) discussions (DOT) microsoft.com> wrote in messag
news:137786F5-5583-4112-88DB-A6AEE12D6DB0 (AT) microsoft (DOT) com..
Quote:
Is there any way to execute dts package from stored procedure? If ther
is, please specify how
Thank you




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.