Skip to content

Commit 14ffcd8

Browse files
committed
Revert main document to original.
1 parent 3362fe7 commit 14ffcd8

1 file changed

Lines changed: 108 additions & 96 deletions

File tree

Lines changed: 108 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Replication to SQL Database | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "6/7/2018"
4+
ms.date: "04/24/2016"
55
ms.prod: sql
66
ms.prod_service: "database-engine, sql-database"
77
ms.component: "replication"
@@ -21,123 +21,135 @@ ms.author: "mathoma"
2121
manager: craigg
2222
monikerRange: "= azuresqldb-current || >= sql-server-2016 || = sqlallproducts-allversions"
2323
---
24-
# Replication with Azure SQL Database
25-
24+
# Replication to SQL Database
2625
[!INCLUDE[appliesto-ss-asdb-xxxx-xxx-md](../../includes/appliesto-ss-asdb-xxxx-xxx-md.md)]
2726

28-
[Azure SQL Database Managed Instance](http://docs.microsoft.com/azure/sql-database/sql-database-managed-instance) (preview) supports transactional and snapshot replication.
29-
30-
## 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:**
5430
- 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/).
5531
- [!INCLUDE[ssSDS](../../includes/sssds-md.md)] must be a push subscriber of a [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] publisher.
5632
- The distribution database and the replication agents cannot be placed on [!INCLUDE[ssSDS](../../includes/sssds-md.md)].
5733
- Snapshot and one-way transactional replication are supported. Peer-to-peer transactional replication and merge replication are not supported.
5834

59-
### Versions
60-
- The publisher and distributor must be at least at one of the following versions:
61-
62-
- Azure SQL Database Managed Instance
63-
- [!INCLUDE[sssqlv14](../../includes/sssqlv14-md.md)]
64-
- [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)]
65-
- [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] SP1 CU3
66-
- [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] RTM CU10
67-
- [!INCLUDE[ssSQL11](../../includes/sssql11-md.md)] SP2 CU8
68-
- [!INCLUDE[ssSQL11](../../includes/sssql11-md.md)] expected in SP3
35+
## Versions
36+
- The publisher and distributor must be at least at one of the following versions:
37+
38+
- [!INCLUDE[sssqlv14](../../includes/sssqlv14-md.md)]
6939

70-
- 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.
40+
- [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)]
41+
42+
- [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] SP1 CU3
43+
44+
- [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] RTM CU10
45+
46+
- [!INCLUDE[ssSQL11](../../includes/sssql11-md.md)] SP2 CU8
47+
48+
- [!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.).
7251

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
7657
- 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+
7759
- Replication can only use [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] authentication logins to connect to [!INCLUDE[ssSDS](../../includes/sssds-md.md)].
60+
7861
- Replicated table must have a primary key.
62+
7963
- You must have an existing Azure subscription and an existing [!INCLUDE[ssSDS](../../includes/sssds-md.md)] V12.
64+
8065
- 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+
8167
- Replication management, monitoring, and troubleshooting must be performed from the on-premises [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)].
68+
8269
- Only push subscriptions to [!INCLUDE[ssSDS](../../includes/sssds-md.md)] are supported.
70+
8371
- 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.
74+
75+
## Replication Architecture
8776
![replication-to-sql-database](../../relational-databases/replication/media/replication-to-sql-database.png "replication-to-sql-database")
88-
89-
## Scenarios
90-
91-
* 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+
10192
2. Redirect the client or middle-tier applications to update the [!INCLUDE[ssSDS](../../includes/sssds-md.md)] copy.
93+
10294
3. Stop updating the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] version of the table and remove the publication.
103-
104-
### Limitations
95+
96+
## Limitations
10597
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+
127137
### Limitations to be determined
128138

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
133144
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)
142-
- [Monitoring &#40;Replication&#41;](../../relational-databases/replication/monitor/monitoring-replication.md)
145+
146+
- [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)
154+
- [Monitoring &#40;Replication&#41;](../../relational-databases/replication/monitor/monitoring-replication.md)
143155
- [Initialize a Subscription](../../relational-databases/replication/initialize-a-subscription.md)

0 commit comments

Comments
 (0)