I have a database called AQOA_Core with huge amount of data. I have a newly created database called AQOA_Core1 which is basically empty. I want to write a query to duplicate AQOA_Core to AQOA_Core1 without the data. I guess to be precise I want to create a skeleton of the primary database into the secondary database. PS: I use Toad for my database operations.
-
SQL Delta is the best tool to compare Different Database structure and syncronize two instancesGalma88– Galma882015-06-30 13:51:48 +00:00Commented Jun 30, 2015 at 13:51
-
2If you were using SQL Server Management Studio, you could right click on the database and choose "Script Database as --> Create", which would generate the script you need.Gordon Linoff– Gordon Linoff2015-06-30 13:54:52 +00:00Commented Jun 30, 2015 at 13:54
Add a comment
|
1 Answer
You can use SQL Server Script Wizard for scripting database objects. You can exclude data, and select the database object types you want to include in your script
Please check the SQL Server guide I referenced above, I hope it helps you