I need to execute xp_cmdshell in a trigger and pass a command line
parameter to the .exe program
i.e. I have a .exe program c:\program files\savedata. exe
In the trigger I have a parameter @Id bigint
I need to pass the parameter @Id to savedata.exe
In the trigger, I am trying
EXEC master..xp_cmds hell 'cmd.exe /C "c:\program files\savedata. exe "'
+ CAST(@Id as varchar)
BUT this does not work.
Can someone please help me with how to do this?
Thanks,
db
parameter to the .exe program
i.e. I have a .exe program c:\program files\savedata. exe
In the trigger I have a parameter @Id bigint
I need to pass the parameter @Id to savedata.exe
In the trigger, I am trying
EXEC master..xp_cmds hell 'cmd.exe /C "c:\program files\savedata. exe "'
+ CAST(@Id as varchar)
BUT this does not work.
Can someone please help me with how to do this?
Thanks,
db
Comment