RATE THIS ANSWER
0
Click to Vote:
0
0
Last Answered:
Jul 28 2008 8:42 PM GMT
by Mrdenny
41270 pts.
Latest Contributors: Tpinky
4165 pts.
You have a couple of options here.
1. Create a backup of the sample database, and instead of using the CREATE DATABASE command use the RESTORE DATABASE command and restore the backup of the template to the new database.
2. Add the objects you want in every database into the model database.
If you have more than one server to deal with, and you want them to all use the same template then use option #1 so that you always use the same template backup for each server. You could even save the backup script so that you just change the database name in the script and run the script and your restore would kick off.