Showing posts with label msrepl_commands. Show all posts
Showing posts with label msrepl_commands. Show all posts

Tuesday, February 14, 2012

commands in the msrepl_commands table

How long do records stay in this table? Is there a way to adjust the
setting?
SQL2K SP3
TIA, ChrisR
for named subscriptions they stay there by default less than 10 minutes
after they are applied on the subscriber - or whatever your transaction
retention is ( by default 0). (you can set this by right clicking on
replication monitor and selecting distributor properties. Its the at least
section)
For anonymous subscriptions it stays at the at most section in the
distributor properties dialog box, or within 10 minutes after that - when
the distribution clean up agent runs.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"ChrisR" <bla@.noemail.com> wrote in message
news:elBPKIkLFHA.2252@.TK2MSFTNGP15.phx.gbl...
> How long do records stay in this table? Is there a way to adjust the
> setting?
> --
> SQL2K SP3
> TIA, ChrisR
>
|||Thanks Hillary.
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:#NCDldkLFHA.1308@.TK2MSFTNGP15.phx.gbl...
> for named subscriptions they stay there by default less than 10 minutes
> after they are applied on the subscriber - or whatever your transaction
> retention is ( by default 0). (you can set this by right clicking on
> replication monitor and selecting distributor properties. Its the at least
> section)
> For anonymous subscriptions it stays at the at most section in the
> distributor properties dialog box, or within 10 minutes after that - when
> the distribution clean up agent runs.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
> "ChrisR" <bla@.noemail.com> wrote in message
> news:elBPKIkLFHA.2252@.TK2MSFTNGP15.phx.gbl...
>

Sunday, February 12, 2012

Command delivery status in MSrepl_commands

I need to build some custom replication trouble shooter and I can't find
answers on couple of questions.
- How to determine status of command in MSrepl_commands? I mean status is
delivered this command to subscriber or not.
- How long delivered transactions reside in MSrepl_commands?
Have a look at the view msdistribution_status, which should be what you are
looking for. The code of the view is not encrypted and you could use it to
not do the group by and create your own version. If you want the actual
commands, then have a look at sp_browsereplcmds.
How long do commands reside in this table? If they have been read by all the
distribution agents involved and you don't have anonymous subscribers, the
commands will be removed by the cleanup agent. If a distribution agent isn't
synchronized or you have anonymous subscribers, they'll stay there until the
retention period is reached (72 hourd by default), and are then removed by
the cleanup agent.
Rgds,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)