SQL Azure database replication

  • We have a database on our premise. We also have SQL Azure subscription. Is there a way that we can replicate or keep a copy of premise database in Azure, and keep it synchronized as a way of disaster recovering.
    What are the options? And how to implement it?

    Thanks,

  • You can use replication. Microsoft has great documentation on how to set it up. That's about your only option for going Azure SQL Database from an on-premises database. You can't use log shipping. You can only set up Availability Groups to a VM.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Thank you all

  • Also related question, what is the other direction:

    How to replicate or backup/restore a SQL azure database to premise SQL server?

    Thanks

  • sqlfriends - Tuesday, February 28, 2017 5:30 PM

    Also related question, what is the other direction:

    How to replicate or backup/restore a SQL azure database to premise SQL server?

    Thanks

    You can't really. You have to export the structures and data.

    There is a mechanism using the dacpac available, but it's not transactionally aware, meaning you can get bad data. To use it properly you need to create a copy of your database in Azure (there's a command for that) and then export the copy to a dacpac file, then you can import that dacpac.

    Otherwise, you can also look to 3rd party tools like Redgate SQL Compare & Data Compare to get the job done.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply