June 10, 2015 at 5:33 pm
how can we track any database performance issues for last week?? (in a particular date/time). Any DMVs?
June 10, 2015 at 5:46 pm
snuthalapati (6/10/2015)
how can we track any database performance issues for last week?? (in a particular date/time). Any DMVs?
You might be able to find something left over in the DMVs but you might have a better chance with DBCC TIMEWARP. 😛 Most people have systems that run nightly runs that frequently drive everything out of the DMVs related to performance so it's not real likely to find something from last week unless you're saving such data on a regular basis.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 11, 2015 at 1:37 am
In short, no.
The DMVs don't store data, they're views into the current internal state of SQL Server. Any restart will clear the DMVs and most performance-related data (dm_exec_query_stats and related DMVs) are based on the plans in memory and a whole pile of things can remove plans from cache or even clear the entire cache.
This is why performance benchmarks are such good things to set up and keep.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply