安装在了D盘,导致无法识别,在环境变量那里添加路径D:\SoftWare\SqlServer2008\PublicFile\100\Tools\Binn就ok, 。用bat执行时 把sql和bat文件放在一起