>>>
>>>I searched the script for CREATE DATABASE and didn't find any.
>>
>>Ok, add them from your other script (create database)
>
>What I ended up doing (because I am not sure I know the correct syntax of CREATE DATABASE with all the choices) is I created database in the SSMS (manually) and then added to the script line use [MyNewDatabase] at the top. Then I executed the script and in less than a second a new database is "populated" with all tables and stored procedures.
>Thank you for your help.
Yes, I think that's what I used to do in the past also.
If it's not broken, fix it until it is.
My Blog