.bat文件内容
"C:Program FilesMicrosoft SQL Server110ToolsBinnosql.exe" -U sa -P sa -S 192.168.2.81 -d PbMesSys -i add_column.sql -o sql.log
"C:Program FilesMicrosoft SQL Server110ToolsBinnosql.exe" -U sa -P sa -S 192.168.2.81 -d PbMesBusiness -i baozhuangDayInputAndOutputData-pro.sql -o sql.log
"C:Program FilesMicrosoft SQL Server110ToolsBinnosql.exe" -U sa -P sa -S 192.168.2.81 -d PbMesBusiness -i CaiQieDayInputAndOutputData-pro.sql -o sql.log
"C:Program FilesMicrosoft SQL Server110ToolsBinnosql.exe" -U sa -P sa -S 192.168.2.81 -d PbMesBusiness -i GetPlanDayData-pro.sql -o sql.log
"C:Program FilesMicrosoft SQL Server110ToolsBinnosql.exe" -U sa -P sa -S 192.168.2.81 -d PbMesBusiness -i GetProductDayData-pro.sql -o sql.log
"C:Program FilesMicrosoft SQL Server110ToolsBinnosql.exe" -U sa -P sa -S 192.168.2.81 -d PbMesBusiness -i ShuiJiaoDayInputAndOutputData-pro.sql -o sql.log
"C:Program FilesMicrosoft SQL Server110ToolsBinnosql.exe" -U sa -P sa -S 192.168.2.81 -d PbMesBusiness -i SiYinDayInputAndOutputData-pro.sql -o sql.log
"C:Program FilesMicrosoft SQL Server110ToolsBinnosql.exe" -U sa -P sa -S 192.168.2.81 -d PbMesBusiness -i yaceDayInputAndOutputData-pro.sql -o sql.log
"C:Program FilesMicrosoft SQL Server110ToolsBinnosql.exe" -U sa -P sa -S 192.168.2.81 -d PbMesBusiness -i zhongjianDayInputAndOutputData-pro.sql -o sql.log
参数说明:
解释: -U 用户名
-P 密码
-S IP+端口
-d 库名称
-i cmd.sql (待执行的sql语句文件)
-o 日志.log