When I try to execute a bat file using xp_CMDShell, I get the message as an unrecognized command.
The following is the i command:
EXEC master..xp_CMDShell 'C:\Documents and Settings\adcxqcv\Desktop\PQA\sample.bat'
I received the message as follows:
'C:\Documents' is not recognized as an internal or external command, operable program or batch file. NULL
Any suggestions. Let me know how to execute the bat file in a stored procedure. I am new to SQl Server.
Thanks Vinu
source share