Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: how to call external exe from Database Trigger

Re: how to call external exe from Database Trigger

From: Jens <Jens_at_sqlserver2005.de>
Date: 29 Mar 2006 03:59:04 -0800
Message-ID: <1143633544.841582.243850@i40g2000cwc.googlegroups.com>


Hi,

I wouldnt do any external things like sending mails, executing a program etc in a trigger though it happen synchronously, that means the transaction wil block you data during the execution, better do that in a job with falgging some table that this job has to be done.

But if you really want t, you can call the app with this here:

(...TriggerCode...)
IF (SomeCondition)
BEGIN
   EXEC XP_CMDSHELL 'C:\someFolder\SomeCommand.exe' END HTH, jens Suessmeyer.

---

http://www.sqlserver2005.de
---
Received on Wed Mar 29 2006 - 05:59:04 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US