I have a .sql script and I want to build a database from it. How to do it in sqlcmd? I know it\'s like:
CREATE DATABASE dbName GO
But how t
This is very simple. Just enter following command to run sqlcmd: sqlcmd -U sa -P password Then enter:
sqlcmd -U sa -P password
CREATE DATABASE MYDB GO
This will create the db. Then enter "quit" to exit.