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
Two glass jars on a garden wall, one empty, one filled with water under a red lid

Comparing Two Wait Stats Snapshots to See What Changed

December 8, 2008
Pinal Dave
SQL Performance
DBA, SQL DMV, SQL Performance, SQL Wait Stats

Compare wait stats snapshots over a chosen window, subtract cumulative counters, remove background waits, and calculate rates and average waits.

Read More
Two identical brass compasses on a workbench, one needle pulled aside by a nearby iron vise

Why One Query Has Two Cached Plans: SET Options and plan_attributes

November 8, 2008
Pinal Dave
SQL Performance
Execution Plan, Parameter Sniffing, SQL Cache, SQL DMV, SQL Server

Investigate two cached plans with plan_attributes, decode differing SET options, and match application settings before diagnosing skew.

Read More
A busy restaurant stove with every burner lit and one pot boiling over as a hand reaches for its lid.

Seeing What Is Running Right Now

October 24, 2008
Pinal Dave
SQL Performance
DBA, SQL DMV, SQL Lock, SQL Performance, SQL Wait Stats

See what is running right now in SQL Server with request DMVs, statement text, plans, waits, and blocking details in one reusable query.

Read More
SQL Server execution plan.

SQL SERVER – 2008 – Find If Index is Being Used in Database

October 3, 2008
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Scripts

How do you find if an index is being used in your database? My quick script checks sys.dm_db_index_usage_stats, so you can drop unused indexes safely.

Read More
A hand tracing one red patch cord back to its jack on an old telephone switchboard

Finding the Client IP Address of a Connection

August 20, 2008
Pinal Dave
SQL Tips and Tricks
Computer Network, DBA, SQL Connection, SQL DMV, SQL Server Security

Find the client IP address of a SQL Server connection with DMVs and CONNECTIONPROPERTY, and understand proxy and local transport limits.

Read More
A flashlight beam from the top of cellar stairs lighting an old boiler, pipes and a shelf of jars.

Three Scripts for a First Look at Any Server

June 6, 2008
Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, SQL DMV, SQL Server, SQL Server Configuration

A first look at any server needs three read-only T-SQL checks: configuration, databases and backups, and current activity.

Read More
SQL Server query execution plan.

SQL SERVER – Introduction to sys.dm_exec_query_optimizer_info

March 28, 2008
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server, SQL System Table

While browsing Books Online I found sys.dm_exec_query_optimizer_info, which returns statistics about the query optimizer to help you tune a workload.

Read More
Previous 1 … 29 30 31 32 33 34 Next
  • Books
  • Testimonials
  • Privacy Policy

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