Re: Transaction Replication Question

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Hilary Cotter (hilary.cotter_at_gmail.com)
Date: 02/28/05


Date: Mon, 28 Feb 2005 15:24:51 -0500

query msrepl_errors in the distribution database on the publisher. If you
are doing a pull subscription query msrepl_errors in the distribution
database on the subscriber.

You can also query the status column of like this:

select name,
MSdistribution_history.agent_id, case when runstatus=1 then 'starting' when
runstatus=2 then 'succeed'
when runstatus=3 then 'running' when runstatus=4 then 'Idle' when
runstatus=5 then 'retry' when runstatus=6 then 'failed' end,max_start_time
from MSdistribution_history join (select agent_id,
Max_Start_Time=max(start_time) from msdistribution_history group by
agent_id) as thyme
on (msdistribution_history.agent_id=thyme.agent_id and
MSdistribution_history.start_time=Max_Start_Time)
join msdistribution_agents on
msdistribution_agents.id=MSdistribution_history.agent_id and start_time=
Max_Start_Time

-- 
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
"Nitin" <Nitin@discussions.microsoft.com> wrote in message
news:F6CD470C-CB27-4940-AC70-F7035619B495@microsoft.com...
> I have transaction replication set up and I want to set up a report to
check
> whether or not my replicaiton is up and runninr. Can someone suggest the
kind
> of queries I can run in Publisher, Distributor and Subscriber to check if
> Replication is up and runnin or not.
>
> Thanks in advance.
>
>


Relevant Pages

  • Re: replicated commands not executed on the subscriber side?
    ... Unlike the replication procedure when changes made at Subscriber, ... Distribution Agent. ... In our case, when running following the distributed transaction, the ...
    (microsoft.public.sqlserver.replication)
  • Replication affects production performance
    ... This is push replication with around 10K to 100K data transfer everyday from ... I've placed distribution and subscriber data and log files on different ...
    (microsoft.public.sqlserver.replication)
  • Re: Merge replication performance dropping. Opinions?
    ... Looking for a SQL Server replication book? ... One master server replicates to three distribution servers. ... all these rows get replicated to each subscriber. ...
    (microsoft.public.sqlserver.replication)
  • Re: Expired Subscription
    ... Does the max distribution retention for the distribution agent affect Merge ... difference when I try to synchronize to a disconnected subscriber. ... replication. ...
    (microsoft.public.sqlserver.replication)
  • Re: Find out transactions not replicated
    ... To get an idea of the commands remaining in the distribution database do ... Looking for a SQL Server replication book? ... > I have set up a transactional replication with Publisher,> Distributor and Subscriber on diff servers. ...
    (microsoft.public.sqlserver.replication)