sqlserver 执行 windows 命令

exec xp_cmdshell 'net start XXXX'   -- 启动XXXX服务

exec xp_cmdshell 'shutdown /r /t 20'   -- 重启机器

  

posted @ 2011-11-03 15:50  Mini.J  阅读(340)  评论(0编辑  收藏  举报