1

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.

2
  • SQL Delta is the best tool to compare Different Database structure and syncronize two instances Commented Jun 30, 2015 at 13:51
  • 2
    If 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. Commented Jun 30, 2015 at 13:54

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.