#Clone Database
Need to duplicate a full SQL Server database — including tables, views, stored procedures and data — without writing complex scripts?
Let me show you a simple, reliable method: Exporting and Importing a Data-tier Application (.bacpac). It’s perfect for backups, migrations, and creating dev/test clones.
Step 1: Export the Source Database
-
Open SQL Server Management Studio (SSMS).
-
Right-click your source database → Tasks → Export Data-tier Application.
-
Choose "Save to local disk", then pick a file path and name (
YourDatabase.bacpac
). -
Click Next through the wizard and generate the
.bacpac
file.
Step 2: Import into Target Server
-
In SSMS, right-click Databases → Import Data-tier Application.
-
Select the
.bacpac
file you exported. -
Give the new database a name.
-
Complete the wizard. ๐ Done!
๐งฉ Diagram
No comments:
Post a Comment