Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Trigger execute Java apps

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-08-08 : 09:12:08
Tue writes "In a trigger body, can I execute an Java application ? or an DOS
EXE file ?

Thank you

Tue Nguyen"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-08-08 : 09:14:38
You can use the xp_cmdshell system procedure to execute commands and EXE files, but beware: you can't run a program that requires user intervention (Word, Excel, or a Java app with a GUI). Also be aware that xp_cmdshell runs synchronously, so if the called app hangs, your SQL Server will also hang.

More detail on xp_cmdshell is in Books Online.

Go to Top of Page
   

- Advertisement -