There are a lot of database cloning tools out there such as SQL Data Compare.
However, end users (using ASP.Net Application) want to clone the staging SQL Server 2008 database to production SQL Azure database himself when contents is ready.
I'm sure that I can compare each and every table using Entity Framework, and insert/update/delete each row. Is there any better method?
Thank you for your help!
You could use the different classes in the
Microsoft.SqlServer.Management
namespace to manage all aspects of SQL Server.This includes doing a backup from one server and restore into another (including changing logfile names and whatever else is needed).
In essence, if you can do it in SSMS, you can use these classes to do the same.
I have used this in the past do do something close to what you are describing.