Need help to write bat file that execute sql scripts in (sql server 2008 and another 3 files.?

后端 未结 4 1721
北荒
北荒 2021-01-05 06:18

I am sure these has been asked before but cannot find clear instruction how to create a batch file lets call it \"Update Database\" this batch file should

Execute s

4条回答
  •  情深已故
    2021-01-05 06:46

    This answer definitely works for your purposes:

    sqlcmd -S localhost -U fdmsusr -P fdmsamho -i "E:\brantst\BranchAtt.sql" -o "E:\brantst\branchlog.txt"

提交回复
热议问题