USE distribution GO SELECT Getdate() AS CaptureTime ,Object_name(t.object_id) AS TableName ,st.row_count ,s.NAME FROM sys.dm_db_partition_stats st WITH (NOLOCK) INNER JOIN sys.tables t WITH (NOLOCK) ON st.object_id = t.object_id INNER JOIN sys.schemas s WITH (NOLOCK) ON t.schema_id = s.schema_id WHERE index_id < 2 AND Object_name(t.object_id) IN ( 'MSsubscriptions' ,'MSdistribution_history' ,'MSrepl_commands' ,'MSrepl_transactions' ) ORDER BY st.row_count DESC
Labels
- Differences (38)
- MongoDB (13)
- MySQL (10)
- Oracle (6)
- ORACLE DBA (1)
- Performance Tuning (13)
- PTuning (3)
- Scenarios (4)
- Scripts (35)
- SQLDBA (99)
- SQLDeveloper (66)
- SSIS (5)
- SSRS (8)
- Troubleshooting (37)
Thursday, 17 October 2019
Find how large replicated transactions are ?.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment