Link to home
Start Free TrialLog in
Avatar of lussier
lussierFlag for Canada

asked on

Call Exe or batch file in a trigger or in a store procedure

I would like to know if i can call a program EXE (.exe) or a batch file (.bat) by in Trigger or a Store Procedure. If so, how? Thanks
Avatar of amit_g
amit_g
Flag of United States of America image

You can call extended stored procedure xp_cmdshell.

EXEC master..xp_cmdshell 'dir *.exe'
ASKER CERTIFIED SOLUTION
Avatar of namasi_navaretnam
namasi_navaretnam
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
lussier, you are new to this forum but for the next time please note that if you have more than one identical answers, accept either the first one or split the point between all of them. Please spend few minutes reading the help ...

https://www.experts-exchange.com/help.jsp#hi19
Agree with Amit. I did not see your response. i have mutiple windows opened and some times i do not see what  others have posted. But I think, lussier picked a more specific answer in this case though.

Regards.