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
SQL SERVER - Find Queries using Parallelism from Cached Plan

SQL SERVER – Find Queries using Parallelism from Cached Plan

July 24, 2010
Pinal Dave
SQL Performance
Best Practices, SQL DMV, SQL Scripts, SQL Server

A script by Feodor Georgiev that finds queries using parallelism from the cached plan, along with their plans. Please avoid running it on a busy production server.

Read More
Clustered Index B-Tree

SQL SERVER – Index Levels, Page Count, Record Count and DMV – sys.dm_db_index_physical_stats

July 4, 2010
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Index, SQL Scripts

How many pages does an index use, and how many B-Tree levels does it have? sys.dm_db_index_physical_stats shows index levels, page count and record count.

Read More
Table showing clustered index entries.

SQL SERVER – Data Pages in Buffer Pool – Data Stored in Memory Cache

June 17, 2010
Pinal Dave
SQL Performance
SQL DMV, SQL Scripts

What is in your memory cache? A query on sys.dm_os_buffer_descriptors shows the data pages in buffer pool for each table and index.

Read More
SQL SERVER - List All the DMV and DMF on Server

SQL SERVER – List All the DMV and DMF on Server

May 15, 2010
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server

“How many DMV and DVF are there in SQL Server 2008?” – this question was asked to me in one of the recent SQL Server Training.

Read More
Workshop baskets carry visibly different accumulated stone loads.

SQL SERVER – Finding Expensive Cached Query Statements with DMVs

May 14, 2010
Pinal Dave
SQL Performance
SQL DMV, SQL Scripts, SQL Server

Finding the Most Expensive Queries starts with choosing a resource measure. I use cached statistics as an investigation aid.

Read More
SQL SERVER - Get Latest SQL Query for Sessions - DMV

SQL SERVER – Get Latest SQL Query for Sessions – DMV

May 5, 2010
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts

Want the latest SQL query for sessions on your server? Join sys.dm_exec_connections with sys.dm_exec_sql_text using most_recent_sql_handle.

Read More
Gouache painting of a balance scale with apples and a small red basket collecting the apples that changed

When Are Statistics Updated? What Triggers an Automatic Update

April 21, 2010
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Statistics

Statistics updated automatically need two things: enough changed rows, and a query that uses the statistic. This post explains the old 500 plus 20 percent rule and the newer square root threshold, then shows a million-row demo where last_updated changes only after a query compiles. It also covers FULLSCAN, asynchronous updates and when to update by hand.

Read More
Previous 1 … 36 37 38 39 40 41 42 … 44 Next
  • Books
  • Testimonials
  • Privacy Policy

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