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

Huge log file on distribution database for Merge replication

$
0
0

Hi,

We have couple Merge replication publications and now we noticed that distribution database log file is about 60gb. We would like to reduce size of log file.

What I have tried:

EXEC dbo.sp_MSdistribution_cleanup @min_distretention = 0, @max_distretention = 12
EXEC dbo.sp_MShistory_cleanup @history_retention = 12

DBCC SHRINKFILE (N'distribution_log',471)

but no luck.

These does not return anything:

select * FROM [distribution].[dbo].[MSrepl_transactions](nolock)
select * FROM [distribution].[dbo].[MSrepl_commands](nolock)

log_reuse_wait_desc shows NOTHING:

SELECT log_reuse_wait_desc,name from sys.databases

Subscription expiration is set to 36 hours on all publications.

Any ideas?

Thanks



Viewing all articles
Browse latest Browse all 4054

Trending Articles



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