dbTalk Databases Forums  

Fire DTS from Trigger

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


Discuss Fire DTS from Trigger in the microsoft.public.sqlserver.dts forum.



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

Default Fire DTS from Trigger - 02-05-2005 , 01:42 PM






All,

I've written a DTS package that contains a complex VBScript that all works
fine but the problem is that I dont know how to fire this DTS package from
an INSERT trigger on a table (I specifically want to avoid a scheduled DTS
job in this case for performance).

I suppose the alternative would be to get the trigger to fire a stored proc
but then how can I execute a VBScript from a stored proc?

Any help (or alternative method if I'm barking up the wrong tree) would be
greatly appreciated.

Thanks,

Darbs....



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

Default Re: Fire DTS from Trigger - 02-05-2005 , 01:54 PM






Does this help

http://www.sqldts.com/default.aspx?219



"Darbs" <m_darbyshire (AT) hotmail (DOT) com> wrote

Quote:
All,

I've written a DTS package that contains a complex VBScript that all works

fine but the problem is that I dont know how to fire this DTS package from

an INSERT trigger on a table (I specifically want to avoid a scheduled DTS

job in this case for performance).

I suppose the alternative would be to get the trigger to fire a stored
proc
but then how can I execute a VBScript from a stored proc?

Any help (or alternative method if I'm barking up the wrong tree) would be

greatly appreciated.

Thanks,

Darbs....


Reply With Quote
  #3  
Old   
Darbs
 
Posts: n/a

Default Re: Fire DTS from Trigger - 02-05-2005 , 02:41 PM



Thanks Allan,

That looks like it will do the job although 1 minor issue:- stored procs
sp_OACreate, sp_OAMethod and sp_OADestroy are not in master on my server
(SQL2000 sp4 enterprise) - is there a script somewhere that I can use to
create them???

Thanks,

Mark.


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
Does this help

http://www.sqldts.com/default.aspx?219



"Darbs" <m_darbyshire (AT) hotmail (DOT) com> wrote in message
news:m_darbyshire (AT) hotmail (DOT) com:
All,

I've written a DTS package that contains a complex VBScript that all
works

fine but the problem is that I dont know how to fire this DTS package
from

an INSERT trigger on a table (I specifically want to avoid a scheduled
DTS

job in this case for performance).

I suppose the alternative would be to get the trigger to fire a stored
proc
but then how can I execute a VBScript from a stored proc?

Any help (or alternative method if I'm barking up the wrong tree) would
be

greatly appreciated.

Thanks,

Darbs....




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

Default Re: Fire DTS from Trigger - 02-05-2005 , 03:29 PM



They're not?

They should be AFAIK

Whilst only a sysadmin can execute them you should be able to see them



"Darbs" <m_darbyshire (AT) hotmail (DOT) com> wrote

Quote:
Thanks Allan,

That looks like it will do the job although 1 minor issue:- stored procs

sp_OACreate, sp_OAMethod and sp_OADestroy are not in master on my server

(SQL2000 sp4 enterprise) - is there a script somewhere that I can use to

create them???

Thanks,

Mark.


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:O3BiHx7CFHA.1564 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Does this help

http://www.sqldts.com/default.aspx?219



"Darbs" <m_darbyshire (AT) hotmail (DOT) com> wrote in message
news:m_darbyshire (AT) hotmail (DOT) com:
All,

I've written a DTS package that contains a complex VBScript that all
works

fine but the problem is that I dont know how to fire this DTS package

from

an INSERT trigger on a table (I specifically want to avoid a scheduled

DTS

job in this case for performance).

I suppose the alternative would be to get the trigger to fire a
stored
proc
but then how can I execute a VBScript from a stored proc?

Any help (or alternative method if I'm barking up the wrong tree) would

be

greatly appreciated.

Thanks,

Darbs....



Reply With Quote
  #5  
Old   
Darbs
 
Posts: n/a

Default Re: Fire DTS from Trigger - 02-05-2005 , 07:19 PM



I'ts me being stupid - I can't see for looking, thanks anyway!!

Mark.....

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
They're not?

They should be AFAIK

Whilst only a sysadmin can execute them you should be able to see them



"Darbs" <m_darbyshire (AT) hotmail (DOT) com> wrote in message
news:m_darbyshire (AT) hotmail (DOT) com:
Thanks Allan,

That looks like it will do the job although 1 minor issue:- stored procs

sp_OACreate, sp_OAMethod and sp_OADestroy are not in master on my server

(SQL2000 sp4 enterprise) - is there a script somewhere that I can use to

create them???

Thanks,

Mark.


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:O3BiHx7CFHA.1564 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Does this help

http://www.sqldts.com/default.aspx?219



"Darbs" <m_darbyshire (AT) hotmail (DOT) com> wrote in message
news:m_darbyshire (AT) hotmail (DOT) com:
All,

I've written a DTS package that contains a complex VBScript that all
works

fine but the problem is that I dont know how to fire this DTS package

from

an INSERT trigger on a table (I specifically want to avoid a scheduled

DTS

job in this case for performance).

I suppose the alternative would be to get the trigger to fire a
stored
proc
but then how can I execute a VBScript from a stored proc?

Any help (or alternative method if I'm barking up the wrong tree)
would

be

greatly appreciated.

Thanks,

Darbs....





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.