Click here to Skip to main content
15,881,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,


How to know whether xp_cmdshell in sql server 2008 crashes or not,
i used this xp_cmdShell in multiple procedures but some times it is crashes and not working , for that i need to send an email when the xp_cmdshell is crashed, can any body help me how can i know the crashes of xp_cmdShell




Thanks & Regards
Sudheer.N
Posted

1 solution

What do you mean by "crashes"?? xp_cmdshell doesn't crash, so your statement doesn't make any sense.

It does, however, return a 0 or 1 depending on if the command was successfully launched. It does NOT tell you if the command it launched was executed successfully or not.

OH, and for future reference, you might want to read these[^].
 
Share this answer
 
v2
Comments
Sudheer Nimmagadda 20-Mar-13 0:47am    
Hi Dave Kreskowiak,

thanks for your reply, but xp_cmdshell is return 0 or 1 based on result its ok,
But my problem is every day at the same time we have to run multiple procedures,
these procedures are using xp_cmdshell and if it is bulk usage on that time it is crashes and not working, please give me how can i know whether the xp_cmdshell is working or not
Dave Kreskowiak 20-Mar-13 7:44am    
Again, what do you mean by "crashes"? That isn't an acurate description of exactly what happens.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900