当前位置: 代码迷 >> Sql Server >> sql 2000 用bat文件执行sql有关问题
  详细解决方案

sql 2000 用bat文件执行sql有关问题

热度:84   发布时间:2016-04-24 23:27:23.0
sql 2000 用bat文件执行sql问题
bat文件 
sqlcmd -s "xxx.xxx.xx.x" -U sa -P sa -d DB -i TruncateSql.sql

sql文件 
TRUNCATE TABLE  M_TABLE1  
TRUNCATE TABLE  T_TABLE2 

哪里写错了呢
不能执行 

------解决方案--------------------
看看改成我这样行不行:http://blog.csdn.net/dba_huangzj/article/details/8350829
  相关解决方案