【发布时间】:2011-08-11 09:28:58
【问题描述】:
当我尝试使用 xp_CMDShell 执行 bat 文件时,我收到一条消息为无法识别的命令。
以下是我执行的命令:
EXEC master..xp_CMDShell 'C:\Documents and Settings\adcxqcv\Desktop\PQA\sample.bat'
我收到一条消息如下:
'C:\Documents' is not recognized as an internal or external command,
operable program or batch file.
NULL
任何建议。让我知道如何在存储过程中执行 bat 文件。 我是 SQL Server 的新手。
谢谢, 维努
【问题讨论】:
标签: sql-server