Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Reset Index Usage Counters Expand / Collapse
Author
Message
Posted Wednesday, March 27, 2013 1:44 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Wednesday, September 17, 2014 9:10 PM
Points: 99, Visits: 495
Hello, is it possible to reset the Index Usage counters like user_seeks,user_scans,user_lookups etc etc on a production server without restarting the SQL Service?

thanks

Post #1436137
Posted Wednesday, March 27, 2013 3:03 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 2:07 PM
Points: 39,883, Visits: 36,230
Take the DB offline, bring it online. Of course that also kicks all users out, clears the plan cache and the data cache, so may not be desirable.

Why not save the current values to a permanent table, then later save the values again and compare the two?



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1436177
Posted Wednesday, March 27, 2013 5:01 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Wednesday, September 17, 2014 9:10 PM
Points: 99, Visits: 495
I don't want to take a prod DB offline unless I really have to so option two it is.

thank you for the reply.
Post #1436220
Posted Thursday, April 4, 2013 7:42 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Today @ 4:37 AM
Points: 1,379, Visits: 2,688
I could be wrong but I'm sure that between sys.dm_db_index_physical_stats,sys.dm_db_index_operational_stats and sys.dm_db_index_usage_stats - 2 out of the 3 are reset when the indexes are rebuilt. Not 100% sure though
Post #1438804
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse