xp_cmdshell

以操作系统命令行解释器的方式执行给定的命令字符串,并以文本行方式返回任何输出。

语法
xp_cmdshell {'command_string'} [, no_output]

参数
'command_string'
是在操作系统命令行解释器上执行的命令字符串。
no_output
是可选参数,表示执行给定的 command_string,但不向客户端返回任何输出。
返回代码值
0(成功)或 1(失败)
 
posted @ 2006-03-08 16:43  tohen  阅读(216)  评论(0编辑  收藏  举报