Skip to Main Content
SQL Server DMVs in Action
book

SQL Server DMVs in Action

by Ian Stirk
May 2011
Intermediate to advanced content levelIntermediate to advanced
352 pages
11h 27m
English
Manning Publications
Content preview from SQL Server DMVs in Action

Chapter 11. Useful scripts

 

This chapter covers
  • Viewing everyone’s last-run SQL query
  • A generic performance test harness
  • Estimating the finishing time of jobs
  • Finding where your query really spends its time
  • A simple lightweight tracing utility

 

Gallimaufry refers to “odds and ends,” and that nicely sums up the content of this chapter. It contains a hodgepodge of scripts that can reveal some interesting and useful information. The scripts given in this chapter wouldn’t sit comfortably within the other chapters of the book.

The content of this chapter is wide ranging, covering such diverse areas as finding which SQL queries everyone last ran, getting Windows system information within SQL Server, determining where your queries really ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

SQL Server Query Performance Tuning,Fourth Edition

SQL Server Query Performance Tuning,Fourth Edition

Grant Fritchey
Pro SQL Server Internals

Pro SQL Server Internals

Dmitri Korotkevitch
SQL Server T-SQL Recipes, Fourth Edition

SQL Server T-SQL Recipes, Fourth Edition

Jason Brimhall, Jonathan Gennick, Wayne Sheffield

Publisher Resources

ISBN: 9781935182733Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link