hello all
how to copy a mssql database to another database.
I want to copy only the structure ,not the content.
tq & regard
denny
How clone database
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Raaj KumarRank #7,836 · 233 reputationPosted Feb 28, 2010, 6:23 PM EST
You can do this by 2 ways. One is backup-and-restore and other is generating script. For your requirement, script based method should be used. Once you generate the script which is pure SQL statements, you can send the script to the machine where you want to clone. So I will provide you a link where you can find a tutorial for the same.
http://blog.sqlauthority.com/2007/08/21/sql-server-2005-create-script-to-copy-database-schema-and-all-the-objects-stored-procedure-functions-triggers-tables-views-constraints-and-all-other-database-objects/
Regards,
raaj