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 - Outer Join Not Allowed in Indexed Views

SQL SERVER – Outer Join Not Allowed in Indexed Views

June 29, 2010
Pinal Dave
SQL Performance
SQL Index, SQL Joins, SQL Scripts, SQL Statistics

Why is OUTER JOIN not allowed in indexed views? A reader was confused by the white paper answer, so I explain it with an example and ask for yours.

Read More
SQL SERVER - Disabled Index and Update Statistics

SQL SERVER – Disabled Index and Update Statistics

May 28, 2010
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server, SQL Statistics

A reader asked how disabled indexes affect statistics. With the clustered index disabled, Update Statistics throws an error; see what happens once you enable it.

Read More
SQL SERVER - Update Statistics are Sampled By Default

SQL SERVER – Update Statistics are Sampled By Default

April 23, 2010
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Statistics

A reader asked if statistics are sampled by default. They are, and a one million row test table proves it. You can set the rate up to 100%.

Read More
Statistics' word cloud.

SQL SERVER – When Are Statistics Updated – What Triggers Statistics to Update

April 21, 2010
Pinal Dave
SQL Performance
SQL Server, SQL Statistics

When are statistics updated in SQL Server, and what triggers it? I compared the algorithms in many documents and share the most common rule. Tell me if it holds.

Read More
SQL SERVER - Find Statistics Update Date - Update Statistics

SQL SERVER – Find Statistics Update Date – Update Statistics

January 25, 2010
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Statistics

Stale statistics can hurt a query plan. Use STATS_DATE to find the statistics update date for each index, then update them if they look outdated.

Read More
Statistical analysis dashboard.

SQL SERVER – Enable Automatic Statistic Update on Database

October 15, 2009
Pinal Dave
SQL Performance
SQL Scripts, SQL Server, SQL Statistics

Good indexes and a tuned query still ran slow because auto update of statistics was off. Enable Automatic Statistic creation and update, then update all stats.

Read More
Client statistics option.

SQL SERVER – SQL Server Management Studio and Client Statistics

October 1, 2009
Pinal Dave
SQL Tips and Tricks
SQL Server Management Studio, SQL Statistics

Query cost does not tell you how much data a query returns. Client statistics in SQL Server Management Studio do, and there are three ways to turn them on.

Read More
Previous 1 … 8 9 10 11
  • Books
  • Testimonials
  • Privacy Policy

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