Dmvs

Tag: dmvs

Faking Read and Writes in SQL Server Index DMVs (Trainer Resource)

Faking Read and Writes in SQL Server Index DMVs (Trainer Resource)

By Kendra Little on February 25, 2016

Tags: dmvs , training

Trainers and speakers need the code they write to be predictable, re-runnable, and as fast as possible. Faking writes can be useful for speakers and teachers who want to be able to generate some statistics in SQL Server’s index dynamic management views or get some query execution plans into cache. The “faking” bit makes the code re-runnable, and usually a bit faster. For writes, it also reduces the risk of filling up your transaction log.

Continue reading

Dynamic Management Quickie: Explore SQL Server system views and functions as you work

Dynamic Management Quickie: Explore SQL Server system views and functions as you work

By Kendra Little on March 22, 2011

There’s a lot of dynamic management and system objects to keep track of in SQL Server. We all sometimes have the moment when we can’t remember exactly which DMV, DMF or other system view/function returns a particular column, or if something even IS accessible from the system objects.

Continue reading

Be Prepared: Collecting Data from sp_WhoIsActive in a Table

Be Prepared: Collecting Data from sp_WhoIsActive in a Table

on February 1, 2011

I am a fangirl of Adam Machanic’s free sp_whoisactive stored procedure.

One of the great things about sp_whoisactive is that it’s very quick to generate a table to collect the data you need, then run the procedure in a loop with a wait statement to regularly collect the data you want over an interval.

Continue reading