Need to sync data from one database in azure to another database where both databases have different location and different server - azure

I'm trying to sync two databases in azure paas having different location and different server.
When I try to create a sync group I'm not able to see the database in other regions.
Sync two databases in different location using azure portal.

For your question, please see FAQ about SQL Data Sync:
What regions support Data Sync
SQL Data Sync is available in all regions.
Data Sync support you sync two databases in azure paas having different location and different server.
Did you followed this document: Tutorial: Set up SQL Data Sync between Azure SQL Database and SQL Server on-premises ?
For example I have two SQL database in different Azure SQL Server and region.
Server 1:
Server 2:
Set 'Mydatabase' database in Server 1 as Hub database, add the 'dbleon' database in Server 2 as member database:
Every thing works ok.
Hope this helps.

Related

Serverless Azure SQL - databases per server

As you can see in the screenshot below, a server needs to be selected or created in order to create an azure sql serverless database.
Can I reuse that server and create other azure sql serverless databases on it? If so, how many databases can be created using the same server?
I found the answer in the documentation:
Azure SQL Logical Server Limits
It's 5000 databases per logical server.

SQL Azure and CDN

what is the best way to limit latency for SQL Azure in global applications?
My Application uses SQL Azure and would like to know based on the network location of users if its possible to connect SQL Azure near to users.
So Logically would need to have SQL Azure database with global replication but not geo-replication as each copy would serve as Master and not secondary.
Thank you in advance.
You may want to try CosmosDB to distribute data globally and obtain low latency as explained on this article and this documentation.
For replicating data using SQL Data Sync with Azure SQL Database, take in consideration paired regions which may reduce latency. With SQL Data Sync a hub database can be defined and many member database on another region, and data can be synched on both ways between the hub and any member database.

Azure SQL Database and SQL Server PAAS - why need both?

In Azure PAAS , When I create a SQL Database , it asks me to create a SQL Server why is this? Also as there are elastic pools why need a SQL Server?
Azure SQL Database and SQL Server PAAS - why need both?
Before answer this, let's see what is an Azure SQL logical server.For more information about Azure SQL logical server, please refer to this tutorial.
A logical server acts as a central administrative point for multiple single or pooled databases, logins, firewall rules, auditing rules, threat detection policies, and failover groups. A logical server can be in a different region than its resource group. The logical server must exist before you can create the Azure SQL database. All databases on a server are created within the same region as the logical server.
So the Azure SQL server is the dependency of the azure database. If you want to create an Azure sql database, an existing Azure SQL server is required. It is similar to a SQL Server instance that you may be familiar with in the on-premises world.

How can we handle Update and Delete in Azure data management gateway

Currently, we are mirroring our local SQL server Database with Azure SQL Server Database. For this, we are using Azure Data Management gateway but the problem is we are not able to handle the update or delete scenario. Update and Delete are not reflecting in Azure SQL Server database(Mirror).
Thanks.
What type of activity are you using in your pipeline? I'm assuming a simple copy activity?
My suggestion would be to have a copy activity that lands a clone of the on premises data in the Azure SQL DB first, maybe in a staging schema set of table or something. Then have a second downstream activity that performs a stored procedure execution activity. You can code a MERGE statement or whatever in the procedure to output the data into a separate table.
It sounds like you almost want a secondary node for your SQL Server in Azure. Maybe just use an availability group?! SQL 2014 or higher required on prem though.
You can also take a look at Transactional Replication to Azure SQL database, with transactional replication, Azure SQL database acts as a subscriber, update/delete changes you made in on-premises SQL Server database will be reflected in Azure SQL database.

Azure DB sync or mirror between DBs hosted in different azure accounts

I need to mirror sync two azure DBs stored in two different azure accounts (so different subscription also different azure enterprise accounts as well); the DB is Azure DB not SQL Server in azure VM.
the DBs are in the same geo area.
how can this be achieved?
thank you
The Answer is no,you can't have mirroring between two SQLAzure databases even if they are in same region..
It seems that you are trying to keep two databases in sync which are in different regions and are under different subscriptions..This is not possible,only HA option SQLAzure supports is replication with onpremises as publisher and SQLAzure database as subscriber..
One more option you can use is Georeplication(only for premium ,last when i checked) which keeps one more database in sync, which can be in different region

Resources