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 2008 Forums
 Other SQL Server 2008 Topics
 triggers execute a command

Author  Topic 

paolo0205
Starting Member

1 Post

Posted - 2009-08-06 : 16:40:10
I would like to have a trigger execute a shell command (c:\somthn\prog.exe). That command is most like an application that pops up a form. Is there any chance to make this possible, cause it seems that there is no GUI avalaible when you trigger a command from sql server.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-08-06 : 17:37:28
It is not possible to see the GUI from a command launched from a trigger. Plus you shouldn't launch programs from a trigger as you are lengthening the transaction and could be causing blocking issues which could lead to performance issues on your system.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -