I have an SQL 2008 R2 Server that is hosting multiple databases.
Is it possible to create a new database and create the tables based on the schema of an existing one?
For example database_1 contains approx 200 tables and full of data. I would like to create a new database called, say, tenant_1 that is based entirely on database_1 but without any data at all.
Both databases are on the same server and in the same SQL instance.
I also need to do all that via an SQL query without any interaction of the SQL Management Studio GUI.
Is that possible?