retrieve data from a remote database using transactional replication for large tables.

%3CLINGO-SUB%20id%3D%22lingo-sub-1761916%22%20slang%3D%22en-US%22%3Eretrieve%20data%20from%20a%20remote%20database%20using%20transactional%20replication%20for%20large%20tables.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1761916%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20two%20sql%20server%202016%20databases%20A%20and%20B.%3CBR%20%2F%3EDatabase%20A%20retrieves%20data%20from%20database%20B%20using%20a%20linked%20server.%3CBR%20%2F%3EThe%20tsql%20statement%20used%20joins%20large%20tables%20from%20database%20B.%3CBR%20%2F%3ETo%20optimize%20I%20thought%20about%20using%20the%20openquery%20statement.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3ESince%20these%20are%20tables%20with%20millions%20of%20records%2C%20I%20am%20thinking%20of%20using%20a%20transactional%20replication%20in%20order%20to%20have%20the%20data%20table%20directly%20on%20database%20A%2C%20in%20order%20to%20process%20them%20locally.%3C%2FP%3E%3CP%3EWhat%20do%20you%20think%20of%20this%20solution%3F%3CBR%20%2F%3Ecan%20you%20offer%20me%20other%20solutions%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

I have two sql server 2016 databases A and B.
Database A retrieves data from database B using a linked server.
The tsql statement used joins large tables from database B.
To optimize I thought about using the openquery statement.


Since these are tables with millions of records, I am thinking of using a transactional replication in order to have the data table directly on database A, in order to process them locally.

What do you think of this solution?
can you offer me other solutions?

0 Replies