neeraj523
asked on
run a external program from a trigger
Hi all...
I m trying to run an external program through a trigger on data modification... But it is not perofrming the required function.. even it is not giving any error..
'''''''''''''''''''''
CREATE TRIGGER try1_trigger
ON try1
FOR INSERT, UPDATE, DELETE
AS
DECLARE @sCmd varchar(256)
EXEC master.dbo.xp_cmdshell 'C:\winnt.sbs\notepad.exe'
''''''''''''''''
please let me know where i m wrong...
thanx
I m trying to run an external program through a trigger on data modification... But it is not perofrming the required function.. even it is not giving any error..
'''''''''''''''''''''
CREATE TRIGGER try1_trigger
ON try1
FOR INSERT, UPDATE, DELETE
AS
DECLARE @sCmd varchar(256)
EXEC master.dbo.xp_cmdshell 'C:\winnt.sbs\notepad.exe'
''''''''''''''''
please let me know where i m wrong...
thanx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
i agree with nigelrivett
ASKER
Thanx nigelrivett for your valuable suggustion...