sqlcmd -S LocalHost -E -i c:/test_DB.sql >>log.txt
Here only specify the Server name, for the db name should be declared in the sql script.
for more information, please see the command help
sqlcmd -?
sqlcmd -S LocalHost -E -i c:/test_DB.sql >>log.txt
Here only specify the Server name, for the db name should be declared in the sql script.
for more information, please see the command help
sqlcmd -?