Sorry if already asked, but I can\'t find anything on this.
I am moving something over from MySQL to SQL Server I want to have a .sql file create a database and tabl
Between creating the database and creating the tables you will need a USE statement.
USE dbname
This way the tables will be created in the correct place, without having to specify the DB name on everything.
Also, GO and BEGIN...END like everyone else is saying.