Clone SQL Server databases

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Clone SQL Server databases



I have a 2 databases on 2 servers, Server A db1 and Server B db2.



Db 1 is a clone of db 2 from 2 weeks ago, and was never updated since then.



There is a short way to make db1 exactly like db2?





Backup db2 and restore it over db1 seems like the simplest and quickest version
– marc_s
Aug 12 at 9:17


db2


db1





You may get better results asking in DBA Stack Exchange. That's designed specifically for Database Administration issues.
– dgnuff
Aug 12 at 9:19




1 Answer
1



a backup from one, and restore to the other is probably the easiest - but you could also used redgates sql compare/data compare tools to find differences for you and move the changes from the source to the target database.



I believe there is a 14+/- day trial for both, so you could try them out. I own all of the redgate tools and find them invaluable for these (and other) problems:



https://www.red-gate.com/products/sql-development/sql-data-compare/





I agree backup/restore is the easiest way to make sure db1 is exactly the same as db2. One could also use SQL Server Data Tools (SSDT) to compare database schema and data.
– Dan Guzman
Aug 12 at 9:40






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard