Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Periodic one-way sync from table to table in another format

$
0
0

I have a table in database MINE containing 300GB+ data on server X (around 50KB per row). On that same server X there is a database THEIRS. I need to sync the data from my table to a table in database THEIRS (one way, only the table in MINE will change). However, that table uses different types for fields.

X.MINE.tableA -> X.THEIRS.tableB

First I thought about just doing a periodic stored procedure which truncates X.THEIRS.tableB and then insert all data from X.MIN.tableA into X.THEIRS.tableB. However, the amount of data is huge. If I want to sync every hour this is way too expensive.

Is there some alternative using replication to keep X.THEIRS.tableB in sync with X.MINE.tableA? Note that X.THEIRS.tableB will only be used for reading.

I am using Microsoft SQL Server 2012.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>