Script to clear stats
Posted by Karthick P.K on January 20, 2010
How to reset SQL Server stats with out restarting.
DBCC SQLPERF ('spinlockstats', CLEAR);
GO
DBCC SQLPERF ('netstats', CLEAR);
GO
DBCC SQLPERF ('rastats', CLEAR);
GO
DBCC SQLPERF ('iostats', CLEAR);
GO
DBCC SQLPERF ('threads', CLEAR);
GO
DBCC SQLPERF ('logspace', CLEAR);
GO
DBCC SQLPERF ('umsstats', CLEAR);
GO
DBCC SQLPERF ('waitstats', CLEAR);
GO
pay day loan said
I simply could not depart your website before suggesting that I really loved the standard info a person provide on your visitors?
Is going to be back frequently to check out new posts
Top SQL Server blogs from MSSQLWIKI « MSSQLWIKI said
[…] Script to clear stats […]