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

SQL Server 2008 replication unsubscribed transaction issue

$
0
0

I execute this query against my distribution database

SELECT T.[publisher_database_id]
,datepart(mm,[entry_time]) 'month'
, datepart(dd,[entry_time]) 'day'
, datepart(hh,[entry_time]) 'hour'
    ,count(C.[xact_seqno]) 'count of commands'
FROM [distribution].[dbo].[MSrepl_transactions](nolock) T
JOIN [MSrepl_commands](nolock) C
ON T.[xact_seqno] = C.[xact_seqno]
GROUP BY T.[publisher_database_id]
  ,datepart(mm,[entry_time])
  , datepart(dd,[entry_time])
  , datepart(hh,[entry_time])
order by 1,2,3,4 

I get the results

publisher_database_id	month	day	hour	count of commands
1	12	10	15	3
2	12	10	11	25566
2	12	10	13	43
2	12	11	8	1056
3	12	10	14	1

I am seeing over 24 hrs period  transactions pending to be replicated. Do I just sit and do nothing and wait till the 72 max retention cleans these up or is there any other action i can take?

Any advise/help would be appreciated on how to clean the unreplicated command because i have numerous pending sessions tied to these unsubscribed transactions.

Thanks,

RD



Viewing all articles
Browse latest Browse all 4054

Trending Articles



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