From : http://sqlblog.com/blogs/maria_zakourdaev/archive/2012/05/11/sqlcmd-mode-give-it-one-more-chance.aspx?utm_source=tuicool - Click on me. Choose me. - asked one forgotten feature when some bored DBA was purposelessly wondering through the Manage…
在做性能测试的时候最希望的一件事情是数据自动导入. 一般做法就是写很多SQL文件,通过Bat自动执行所有Sql文件. Bat代码: @ECHO OFF SET SQLCMD="C:\Program Files\Microsoft SQL Server\100\Tools\Binn\SQLCMD.EXE" SET PATH="C:\path\to\sql\files\" SET SERVER="Server\Instance" SET DB=&qu…