You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Learn about configuring replication to Azure SQL Edge.
4
4
author: rwestMSFT
5
5
ms.author: randolphwest
6
-
ms.reviewer: randolphwest
7
-
ms.date: 05/19/2020
6
+
ms.date: 09/14/2023
8
7
ms.service: sql-edge
9
8
ms.topic: conceptual
10
-
services: sql-edge
11
9
---
10
+
# Configure replication to Azure SQL Edge
12
11
13
-
# Configure replication to Azure SQL Edge
12
+
> [!IMPORTANT]
13
+
> Azure SQL Edge no longer supports the ARM64 platform.
14
14
15
-
You can configure an instance of Azure SQL Edge as the push subscriber for one-way transactional replication or snapshot replication. This instance can't act as the publisher or the distributor for a transactional replication configuration. Note that Azure SQL Edge doesn't support merge replication, peer-to-peer replication, or Oracle publishing.
15
+
You can configure an instance of Azure SQL Edge as the push subscriber for one-way transactional replication or snapshot replication. This instance can't act as the publisher or the distributor for a transactional replication configuration. Azure SQL Edge doesn't support merge replication, peer-to-peer replication, or Oracle publishing.
16
16
17
17
## Supported configurations
18
-
18
+
19
19
- The instance of Azure SQL Edge must be a push subscriber for a publisher.
20
20
- The publisher and the distributor can be either:
21
21
- An instance of SQL Server running on-premises, or an instance of SQL Server running in an Azure virtual machine. For more information, see [SQL Server on Azure Virtual Machines overview](/azure/azure-sql/virtual-machines/index). SQL Server instances must be using a version later than SQL Server 2016.
22
-
- An instance of Azure SQL Managed Instance. SQL Managed Instance can host publisher, distributor, and subscriber databases. For more information, see [Replication with SQL Database Managed Instance](/azure/sql-database/replication-with-sql-database-managed-instance/).
22
+
- An instance of Azure SQL Managed Instance. SQL Managed Instance can host publisher, distributor, and subscriber databases. For more information, see [Replication with SQL Managed Instance](/azure/sql-database/replication-with-sql-database-managed-instance/).
23
23
24
-
- The distribution database and the replication agents can't be placed on an instance of Azure SQL Edge.
24
+
- The distribution database and the replication agents can't be placed on an instance of Azure SQL Edge.
25
25
26
-
> [!NOTE]
27
-
> If you attempt to configure replication by using an unsupported version, you might receive the following two errors: MSSQL_REPL20084 ("The process could not connect to Subscriber.") and MSSQL_REPL40532 ("Cannot open server \<name> requested by the login. The login failed.").
26
+
> [!NOTE]
27
+
> If you attempt to configure replication by using an unsupported version, you might receive the following two errors: MSSQL_REPL20084 ("The process could not connect to Subscriber.") and MSSQL_REPL40532 ("Cannot open server \<name> requested by the login. The login failed.").
28
28
29
29
## Remarks
30
30
@@ -33,56 +33,56 @@ The following requirements and best practices are important to understand as you
33
33
- You can configure replication by using [SQL Server Management Studio](/sql/ssms/download-sql-server-management-studio-ssms). You can also do so by running Transact-SQL statements on the publisher, by using either SQL Server Management Studio or [Azure Data Studio](/sql/azure-data-studio/download-azure-data-studio).
34
34
- To replicate to an instance of Azure SQL Edge, you must use SQL Server authentication to sign in.
35
35
- Replicated tables must have a primary key.
36
-
- A single publication on SQL Server can support both Azure SQL Edge and SQL Server (on-premises and SQL Server in an Azure virtual machine) subscribers.
37
-
- Replication management, monitoring, and troubleshooting must be performed from the SQL Server instance.
38
-
- Only push subscriptions to Azure SQL Edge are supported.
39
-
- Only `@subscriber_type = 0` is supported in the stored procedure `sp_addsubscription` for Azure SQL Edge.
36
+
- A single publication on SQL Server can support both Azure SQL Edge and SQL Server (on-premises and SQL Server in an Azure virtual machine) subscribers.
37
+
- Replication management, monitoring, and troubleshooting must be performed from the SQL Server instance.
38
+
- Only push subscriptions to Azure SQL Edge are supported.
39
+
- Only `@subscriber_type = 0` is supported in the stored procedure `sp_addsubscription` for Azure SQL Edge.
40
40
- Azure SQL Edge doesn't support bi-directional, immediate, updatable, or peer-to-peer replication.
41
-
- Azure SQL Edge only supports a subset of features available in SQL Server or SQL Managed Instance. If you attempt to replicate a database (or objects within the database) that contains one or more unsupported features, the attempt fails. For example, if you attempt to replicate a database that contains objects with spatial data types, you'll receive an error. For more information, see [Supported features of Azure SQL Edge](features.md).
41
+
- Azure SQL Edge only supports a subset of features available in SQL Server or SQL Managed Instance. If you attempt to replicate a database (or objects within the database) that contains one or more unsupported features, the attempt fails. For example, if you attempt to replicate a database that contains objects with spatial data types, you receive an error. For more information, see [Supported features of Azure SQL Edge](features.md).
42
42
43
43
## Initialize reference data on an instance of Azure SQL Edge
44
44
45
45
You might want to initialize your instance with reference data that changes over time. For example, you might want to update machine learning models on your instance of Azure SQL Edge, after they have been trained on a SQL Server instance. Here's how to initialize your instance in such a scenario:
46
46
47
-
1. Create a transactional replication publication on a SQL Server database.
48
-
2. On the SQL Server instance, use the **New Subscription Wizard** or Transact-SQL statements to create a push to subscription to Azure SQL Edge.
49
-
3. You can initialize the replicated database on Azure SQL Edge by using a snapshot generated by the snapshot agent, and distributed and delivered by the distribution agent. Alternatively, you can initialize by using a backup of the database from the publisher. Remember that if the database backup contains objects or features not supported by Azure SQL Edge, the restore operation fails.
47
+
1. Create a transactional replication publication on a SQL Server database.
48
+
1. On the SQL Server instance, use the **New Subscription Wizard** or Transact-SQL statements to create a push to subscription to Azure SQL Edge.
49
+
1. You can initialize the replicated database on Azure SQL Edge by using a snapshot generated by the snapshot agent, and distributed and delivered by the distribution agent. Alternatively, you can initialize by using a backup of the database from the publisher. Remember that if the database backup contains objects or features not supported by Azure SQL Edge, the restore operation fails.
50
50
51
51
## Limitations
52
52
53
53
The following options aren't supported for Azure SQL Edge subscriptions:
54
54
55
-
- Copy file groups association
56
-
- Copy table partitioning schemes
57
-
- Copy index partitioning schemes
58
-
- Copy user defined statistics
59
-
- Copy default bindings
60
-
- Copy rule bindings
61
-
- Copy fulltext indexes
62
-
- Copy XML XSD
63
-
- Copy XML indexes
64
-
- Copy permissions
65
-
- Copy spatial indexes
66
-
- Copy filtered indexes
67
-
- Copy data compression attribute
68
-
- Copy sparse column attribute
55
+
- Copy file groups association
56
+
- Copy table partitioning schemes
57
+
- Copy index partitioning schemes
58
+
- Copy user defined statistics
59
+
- Copy default bindings
60
+
- Copy rule bindings
61
+
- Copy fulltext indexes
62
+
- Copy XML XSD
63
+
- Copy XML indexes
64
+
- Copy permissions
65
+
- Copy spatial indexes
66
+
- Copy filtered indexes
67
+
- Copy data compression attribute
68
+
- Copy sparse column attribute
69
69
- Copy filestream, `hierarchyid`, or spatial data types
70
-
- Convert `hierarchyid` to MAX data types
71
-
- Convert spatial to MAX data types
72
-
- Copy extended properties
73
-
- Copy permissions
70
+
- Convert `hierarchyid` to MAX data types
71
+
- Convert spatial to MAX data types
72
+
- Copy extended properties
73
+
- Copy permissions
74
74
75
75
## Examples
76
76
77
77
Create a publication and a push subscription. For more information, see:
78
-
78
+
79
79
-[Create a publication](/sql/relational-databases/replication/publish/create-a-publication)
80
-
-[Create a push subscription](/sql/relational-databases/replication/create-a-push-subscription/) by using the Azure SQL Edge server name and IP as the subscriber (for example, **myEdgeinstance,1433**), and a database name on the Azure SQL Edge instance as the destination database (for example, **AdventureWorks**).
80
+
-[Create a push subscription](/sql/relational-databases/replication/create-a-push-subscription/) by using the Azure SQL Edge server name and IP as the subscriber (for example, **myEdgeinstance,1433**), and a database name on the Azure SQL Edge instance as the destination database (for example, **AdventureWorks**).
81
81
82
-
## Next steps
82
+
## Next steps
83
83
84
84
-[Create a publication](/sql/relational-databases/replication/publish/create-a-publication)
85
85
-[Create a push subscription](/sql/relational-databases/replication/create-a-push-subscription/)
86
86
-[Types of replication](/sql/relational-databases/replication/types-of-replication)
0 commit comments