>>>>>
>>>>>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.
>
>I thought I was the only one who does not know the syntax of CREATE DATABASE <g>.
:)))
If it's not broken, fix it until it is.
My Blog