dbTalk Databases Forums  

Execute package from sproc or trigger

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


Discuss Execute package from sproc or trigger in the microsoft.public.sqlserver.dts forum.



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

Default Execute package from sproc or trigger - 01-10-2004 , 07:19 PM






Is it possible to execute a DTS package from a sproc or a trigger without
using sp_start_job? If so, how? I can't use sp_start_job since I'm not the
admin.

Thanks for any help.

Mary



Reply With Quote
  #2  
Old   
Mary Bray
 
Posts: n/a

Default Re: Execute package from sproc or trigger - 01-10-2004 , 10:35 PM






you could use xp_cmdshell 'dtsrun...' assuming the non admin windows CMD
EXEC account has been enabled and has the necessary permissions.
Alternatively you could look at using the sp_OA stored procs that let you
create a OLE object, and use the DTS COM objects. Pretty nasty though ...

"Mary" <mary.powers (AT) pnl (DOT) gov> wrote

Quote:
Is it possible to execute a DTS package from a sproc or a trigger without
using sp_start_job? If so, how? I can't use sp_start_job since I'm not
the
admin.

Thanks for any help.

Mary





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

Default Re: Execute package from sproc or trigger - 01-11-2004 , 05:49 AM



Have a look here

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

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"Mary" <mary.powers (AT) pnl (DOT) gov> wrote

Quote:
Is it possible to execute a DTS package from a sproc or a trigger without
using sp_start_job? If so, how? I can't use sp_start_job since I'm not
the
admin.

Thanks for any help.

Mary





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.