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
## Publisher or Distributor on Azure SQL Database Managed Instance
31
-
32
-
Azure SQL Databases in Managed Instance can participate in any replication role - publisher, distributor, or subscriber. Databases participating in replication can be hosted in an instance of SQL Server on-premises or on in the cloud with a Managed Instance.
33
-
34
-
### Supported topologies
35
-
36
-
- All participating databases in the cloud
37
-
- Publisher and distributor on-premises, with one or more of the subscribers in the cloud
38
-
- Publisher and distributor in the cloud, with one or more of the subscribers on-premises
39
-
40
-
In any scenario, a replication topology can include a mix of on-premises and cloud-hosted subscribers.
41
-
42
-
### Requirements
43
-
44
-
- Publisher and distributor databases on Azure SQL Database must be on Managed Instance
45
-
- To configure publisher or distributor databases on Azure SQL Databases, use Transact-SQL
46
-
- All instances of SQL Server must be on the same virtual network
47
-
- Databases on Azure SQL Database Managed Instance use SQL Authentication
48
-
49
-
## Push subscriptions to Azure SQL Database (either single or elastic pool)
50
-
51
-
[!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] replication can be configured to [!INCLUDE[ssSDSFull](../../includes/sssdsfull-md.md)] or elastic pool as a push subscription. In order to participate as a publisher or distributor, SQL Database has to be in a Managed Instance.
52
-
53
-
### Supported Configurations
27
+
[!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] replication can be configured to [!INCLUDE[ssSDSFull](../../includes/sssdsfull-md.md)].
28
+
29
+
### **Supported Configurations:**
54
30
- The [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] can be an instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] running on-premises or an instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] running in an Azure virtual machine in the cloud. For more information, see [SQL Server on Azure Virtual Machines overview](https://azure.microsoft.com/documentation/articles/virtual-machines-sql-server-infrastructure-services/).
55
31
-[!INCLUDE[ssSDS](../../includes/sssds-md.md)] must be a push subscriber of a [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] publisher.
56
32
- The distribution database and the replication agents cannot be placed on [!INCLUDE[ssSDS](../../includes/sssds-md.md)].
57
33
- Snapshot and one-way transactional replication are supported. Peer-to-peer transactional replication and merge replication are not supported.
58
34
59
-
### Versions
60
-
- The publisher and distributor must be at least at one of the following versions:
- Attempting to configure replication using an older version can result in error number MSSQL_REPL20084 (The process could not connect to Subscriber.) and MSSQL_REPL40532 (Cannot open server \<name> requested by the login. The login failed.).
71
-
- The [!INCLUDE[ssSDS](../../includes/sssds-md.md)] subscriber must be at least V12 and can be in any region.
-[!INCLUDE[ssSQL11](../../includes/sssql11-md.md)] expected in SP3
49
+
50
+
- Attempting to configure replication using an older version can result in error number MSSQL_REPL20084 (The process could not connect to Subscriber.) and MSSQL_REPL40532 (Cannot open server \<name> requested by the login. The login failed.).
72
51
73
-
- To use all the features of [!INCLUDE[ssSDS](../../includes/sssds-md.md)] you must be using the latest versions of [SQL Server Management Studio](../../ssms/download-sql-server-management-studio-ssms.md) and [SQL Server Data Tools](../../ssdt/download-sql-server-data-tools-ssdt.md).
74
-
75
-
### Remarks
52
+
- The [!INCLUDE[ssSDS](../../includes/sssds-md.md)] subscriber must be at least V12 and can be in any region.
53
+
54
+
- To use all the features of [!INCLUDE[ssSDS](../../includes/sssds-md.md)] you must be using the latest versions of [SQL Server Management Studio](https://msdn.microsoft.com/library/mt238290.aspx) and [SQL Server Data Tools](https://msdn.microsoft.com/library/mt204009.aspx).
55
+
56
+
## Remarks
76
57
- Replication can be configured by using [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] or by executing [!INCLUDE[tsql](../../includes/tsql-md.md)] statements on the publisher. You cannot configure replication by using the [!INCLUDE[ssSDS](../../includes/sssds-md.md)] portal.
58
+
77
59
- Replication can only use [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] authentication logins to connect to [!INCLUDE[ssSDS](../../includes/sssds-md.md)].
60
+
78
61
- Replicated table must have a primary key.
62
+
79
63
- You must have an existing Azure subscription and an existing [!INCLUDE[ssSDS](../../includes/sssds-md.md)] V12.
64
+
80
65
- A single publication on [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] can support both [!INCLUDE[ssSDS](../../includes/sssds-md.md)] and [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] (on-premises and [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] in an Azure virtual machine) subscribers.
66
+
81
67
- Replication management, monitoring, and troubleshooting must be performed from the on-premises [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)].
68
+
82
69
- Only push subscriptions to [!INCLUDE[ssSDS](../../includes/sssds-md.md)] are supported.
70
+
83
71
- Only `@subscriber_type = 0` is supported in **sp_addsubscription** for SQL Database.
84
-
-[!INCLUDE[ssSDS](../../includes/sssds-md.md)] does not support bi-directional, immediate, updatable, or peer to peer replication.
85
-
86
-
### Replication Architecture
72
+
73
+
-[!INCLUDE[ssSDS](../../includes/sssds-md.md)] does not support bi-directional, immediate, updatable, or peer to peer replication.
* Create a transactional replication publication on either:
92
-
- An on-premises [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] instance of SQL Server
93
-
or
94
-
- An Azure SQL Database Managed Instance
95
-
* To create a push subscription to a [!INCLUDE[ssSDS](../../includes/sssds-md.md)] from an on-premises instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], use the **New Subscription Wizard** or [!INCLUDE[tsql](../../includes/tsql-md.md)] statements. If the publisher or distributor are on Azure SQL Database Managed Instance, use [!INCLUDE[tsql](../../includes/tsql-md.md)].
96
-
* The initial data set is typically a snapshot that is created by the Snapshot Agent and distributed and applied by the Distribution Agent. The initial data set can also be supplied through a backup or other means, such as [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)][!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)].
97
-
98
-
### Data Migration Scenario
99
-
100
-
1. Use transactional replication to replicate data to [!INCLUDE[ssSDS](../../includes/sssds-md.md)].
77
+
78
+
## Scenarios
79
+
80
+
### Typical Replication Scenario
81
+
82
+
1. Create a transactional replication publication on an on-premises [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] database.
83
+
84
+
2. On the on-premises [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] use the **New Subscription Wizard** or [!INCLUDE[tsql](../../includes/tsql-md.md)] statements to create a push to subscription to [!INCLUDE[ssSDS](../../includes/sssds-md.md)].
85
+
86
+
3. The initial data set is typically a snapshot that is created by the Snapshot Agent and distributed and applied by the Distribution Agent. The initial data set can also be supplied through a backup or other means, such as [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)][!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)].
87
+
88
+
#### Data Migration Scenario
89
+
90
+
1. Use transactional replication to replicate data from an on-premises [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] database to [!INCLUDE[ssSDS](../../includes/sssds-md.md)].
91
+
101
92
2. Redirect the client or middle-tier applications to update the [!INCLUDE[ssSDS](../../includes/sssds-md.md)] copy.
93
+
102
94
3. Stop updating the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] version of the table and remove the publication.
103
-
104
-
### Limitations
95
+
96
+
## Limitations
105
97
The following options are not supported for [!INCLUDE[ssSDS](../../includes/sssds-md.md)] subscriptions:
106
-
107
-
- Copy file groups association
108
-
- Copy table partitioning schemes
109
-
- Copy index partitioning schemes
110
-
- Copy user defined statistics
111
-
- Copy default bindings
112
-
- Copy rule bindings
113
-
- Copy fulltext indexes
114
-
- Copy XML XSD
115
-
- Copy XML indexes
116
-
- Copy permissions
117
-
- Copy spatial indexes
118
-
- Copy filtered indexes
119
-
- Copy data compression attribute
120
-
- Copy sparse column attribute
121
-
- Convert filestream to MAX data types
122
-
- Convert hierarchyid to MAX data types
123
-
- Convert spatial to MAX data types
124
-
- Copy extended properties
125
-
- Copy permissions
126
-
98
+
99
+
- Copy file groups association
100
+
101
+
- Copy table partitioning schemes
102
+
103
+
- Copy index partitioning schemes
104
+
105
+
- Copy user defined statistics
106
+
107
+
- Copy default bindings
108
+
109
+
- Copy rule bindings
110
+
111
+
- Copy fulltext indexes
112
+
113
+
- Copy XML XSD
114
+
115
+
- Copy XML indexes
116
+
117
+
- Copy permissions
118
+
119
+
- Copy spatial indexes
120
+
121
+
- Copy filtered indexes
122
+
123
+
- Copy data compression attribute
124
+
125
+
- Copy sparse column attribute
126
+
127
+
- Convert filestream to MAX data types
128
+
129
+
- Convert hierarchyid to MAX data types
130
+
131
+
- Convert spatial to MAX data types
132
+
133
+
- Copy extended properties
134
+
135
+
- Copy permissions
136
+
127
137
### Limitations to be determined
128
138
129
-
- Copy collation
130
-
- Execution in a serialized transaction of the SP
131
-
132
-
## Examples
139
+
- Copy collation
140
+
141
+
- Execution in a serialized transaction of the SP
142
+
143
+
## Examples
133
144
Create a publication and a push subscription. For more information, see:
134
-
135
-
-[Create a Publication](../../relational-databases/replication/publish/create-a-publication.md)
136
-
-[Create a Push Subscription](../../relational-databases/replication/create-a-push-subscription.md) by using the [!INCLUDE[ssSDSFull](../../includes/sssdsfull-md.md)] logical server name as the subscriber (for example `N'azuresqldbdns.database.windows.net'`) and the [!INCLUDE[ssSDS](../../includes/sssds-md.md)] name as the destination database (for example `AdventureWorks`).
137
-
138
-
## See Also
139
-
-[Create a Publication](../../relational-databases/replication/publish/create-a-publication.md)
140
-
-[Create a Push Subscription](../../relational-databases/replication/create-a-push-subscription.md)
141
-
-[Types of Replication](../../relational-databases/replication/types-of-replication.md)
-[Create a Publication](../../relational-databases/replication/publish/create-a-publication.md)
147
+
148
+
-[Create a Push Subscription](../../relational-databases/replication/create-a-push-subscription.md) by using the [!INCLUDE[ssSDSFull](../../includes/sssdsfull-md.md)] logical server name as the subscriber (for example **N'azuresqldbdns.database.windows.net'**) and the [!INCLUDE[ssSDS](../../includes/sssds-md.md)] name as the destination database (for example **AdventureWorks**).
149
+
150
+
## See Also
151
+
-[Create a Publication](../../relational-databases/replication/publish/create-a-publication.md)
152
+
-[Create a Push Subscription](../../relational-databases/replication/create-a-push-subscription.md)
153
+
-[Types of Replication](../../relational-databases/replication/types-of-replication.md)
0 commit comments