简体   繁体   中英

replication multiple databases into one database

Before the question I want to explain what I'm trying to do. I'm using SQL Server 2016 and I have 2 databases

DataBaseA

DataBaseB

In a remote server I created the same databases using the same creation SQL scripts that i used for DataBaseA and DatabaseB . Then I used the replication service from SQL Server 2016 . My local database is the publisher and the remote server is the subscriber.

This worked fine. What I want to do is having one database in the remote server that contains all tables from both databases and the 2 databases replicate to their corresponding tables.

For example

[DataBaseA].[dbo].[TableA] ---is Replicated into-->[AggregatedDataBase].[dbo].[TableA]

[DataBaseB].[dbo].[TableB] ---is Replicated into-->[AggregatedDataBase].[dbo].[TableB]

Is this possible? If yes how to do it else what other options to do what I'm looking for?

Yes,it is possible..two different publishers can have one subscriber..

If yes how to do it

Just set up the way you set up replication and while selecting subscriber choose aggregated database

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM