This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
Statistics

SQL SERVER – Find Details for Statistics of Whole Database

June 29, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Scripts, SQL Server, SQL Statistics

Need statistics of whole database in one view? My script uses DMVs instead of the deprecated sp_helpstats and shows each stat, column and last update.

Read More
Dairy cows walking home along a farm lane at dusk, one cow lagging far behind at a bend.

Finding the Slowest Stored Procedures With sys.dm_exec_procedure_stats

April 26, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Performance, SQL Server, SQL Stored Procedure

Find the slowest stored procedures with cache statistics, compare CPU and reads, and use two snapshots to isolate one busy hour.

Read More
SQL Server query with WHERE clause and JOIN clause.

SQL SERVER – Pending IO request in SQL Server – DMV

March 13, 2011
Pinal Dave
SQL Tips and Tricks
SQL DMV

How many pending IO requests are there for each MDF and LDF file? My handy script joins sys.dm_io_pending_io_requests with virtual file stats.

Read More
SQL SERVER - CXPACKET - Parallelism - Advanced Solution - Wait Type - Day 7 of 28

SQL SERVER – CXPACKET Parallelism Advanced Solution – Wait Type – Day 7 of 28

February 7, 2011
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Wait Stats

Beyond MAXDOP and cost threshold, my CXPACKET parallelism advanced solution looks at other causes, like skewed data and threads stuck on IO, memory or CPU.

Read More
Threshold for parallelism.

SQL SERVER – CXPACKET – Parallelism – Usual Solution – Wait Type – Day 6 of 28

February 6, 2011
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Wait Stats

CXPACKET is one of the top wait stats on most multi-CPU systems. Day 6 explains why parallel queries create it and the usual fix with MAXDOP.

Read More
SQL SERVER - Capturing Wait Types and Wait Stats Information at Interval - Wait Type - Day 5 of 28

SQL SERVER – Capturing Wait Types and Wait Stats Information at Interval – Wait Type – Day 5 of 28

February 5, 2011
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Wait Stats

Wait stats reset when services restart. Day 5 shows my method for capturing wait types and wait stats in a table at intervals to compare them later.

Read More
Click to Enlarage

SQL SERVER – DMV – sys.dm_os_waiting_tasks and sys.dm_exec_requests – Wait Type – Day 4 of 28

February 4, 2011
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Wait Stats

sys.dm_os_wait_stats shows the instance-level picture. This query joins sys.dm_os_waiting_tasks and sys.dm_exec_requests to see what waits right now.

Read More
Previous 1 … 24 25 26 27 28 29 30 … 34 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com