Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Transactional Replication Query Timeout Expired

$
0
0

Hello,

I am getting the timeout expired error with a transactional replication distribution agent. The problem was that there are about 16 millions unreplicated commands in the Msrepl_commands table. The QueryTimeout was increased from 1800 to 7200 in the distribution agent profile. But it kept getting the message "The process is running and is waiting for a response from the server.".

I tried to modify the distribution.sys.sp_MSget_repl_commands but it said it did not exist. Is there a way to pass in the @read_query_size? From the SQL profiler, the command is

exec sp_MSget_repl_commands 7,0x000011B00001224A005900000000,0,10000000

Ideally if I could change the sp_MSget_repl_commands or the @read_query_size so that the distribution agent could start with a small number of commands to replicate.

Any suggestion is appreciated.

Thanks a lot,

Frank Yu



Viewing all articles
Browse latest Browse all 4054

Trending Articles



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