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
A hand searching a tin of jumbled buttons for a matching set, an empty compartment tray beside it.

Indexing Foreign Keys

May 19, 2010
Pinal Dave
SQL Performance
SQL Constraint and Keys, SQL Index, SQL Lock, SQL Server

Indexing foreign keys can speed joins and parent deletes when child-side indexes are missing; learn how to find gaps and test write tradeoffs.

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 - Size of Index Table for Each Index - Solution 3 - Powershell Index Size

SQL SERVER – Size of Index Table for Each Index – Solution 3 – Powershell Index Size

May 10, 2010
Pinal Dave
SQL Performance
PowerShell, SQL Index, SQL Scripts, SQL Server

Laerte Junior fixed my Powershell setup remotely in minutes and sent solution 3 to my puzzle on the size of each index. Here is his Powershell Index Size answer.

Read More
SQL SERVER - Size of Index Table for Each Index - Solution 2

SQL SERVER – Size of Index Table for Each Index – Solution 2

May 9, 2010
Pinal Dave
SQL Performance
SQL Data Storage, SQL Index, SQL Scripts

A second solution to my size of index table puzzle: Rama Mathanmohan’s query sums used pages from sys.allocation_units to give each index size in KB.

Read More
Loose wooden dowels and tied bundles rest on a slate tray beside four bundles inside an open wooden crate.

Aggregate Before the Join: Shrinking Rows Early With GROUP BY

May 4, 2010
Pinal Dave
SQL Performance
SQL Group By, SQL Joins, SQL Performance

Aggregate before the join only when the grouping preserves the required customer result. This private lab checks NULLs, missing matches, duplicate dimensions, complete outputs, actual plans, and reads.

Read More
SQL SERVER - GUID vs INT - Your Opinion

SQL SERVER – GUID vs INT – Your Opinion

April 28, 2010
Pinal Dave
SQL Performance
SQL Constraint and Keys, SQL Data Storage

GUID vs INT as a primary key or clustered index: I list one advantage and one disadvantage of each and ask you to add yours in the comments.

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
Previous 1 … 91 92 93 94 95 96 97 … 127 Next
  • Books
  • Testimonials
  • Privacy Policy

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