November 20, 2017 at 6:03 am
Hello guys, how can i get statistic for 2,3 days which operation like insert select update is used more.Thank you
November 20, 2017 at 6:13 am
You'll need to set up an extended event session for that, it's not something tracked (you can get ratio of reads to changes per index from the index usage DMVs, but that's all)
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
November 22, 2017 at 11:40 am
While it's still available in the cache, just at it would be for index_usage_stats, you can likely use:
sys.dm_db_index_operational_stats
If the table is active, that data is very likely to remain present. Naturally you could also capture and save it periodically, such as every 15 (or 30 or whatever) mins during that time. You would then also be able to compute what times of day had the most activity (at least for the specific day(s) you've run it for).
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
November 22, 2017 at 2:25 pm
iseedeadpeople - Monday, November 20, 2017 6:03 AMHello guys, how can i get statistic for 2,3 days which operation like insert select update is used more.Thank you
Interesting question and I'm curious... what will you do with such information once you have it? And, is there a limit as to the number of tables you need to find this information for or do you need it for the whole database or a whole instance?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply