Please start any new threads on our new
site at http://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Our new SQL Server Forums are live!
Come on over! We've restricted the ability to create new threads on these forums.
Yak Posting Veteran
Flowing Fount of Yak Knowledge
Aged Yak Warrior
IF NOT EXISTS (SELECT name FROM sys.databases where name = 'db_name')
CREATE DATABASE db_name;
CREATE TABLE db_name.dbo.table_name1 ( .... )
CREATE TABLE db_name.dbo.table_name2 ( .... )