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
Results window of AdventureWorks.

SQL SERVER – Size of Index Table – A Puzzle to Find Index Size for Each Index on Table

November 18, 2009
Pinal Dave
SQL Puzzle
SQL Index, SQL Scripts, SQL Stored Procedure

sp_spaceused shows the total index size of a table. My puzzle for you: write a query that adds the size of each index to the sys.indexes list.

Read More
SQL SERVER - 2005 2008 - Backup, Integrity Check and Index Optimization By Ola Hallengren

SQL SERVER – 2005 2008 – Backup, Integrity Check and Index Optimization By Ola Hallengren

November 17, 2009
Pinal Dave
SQL Performance
SQL Documentation, SQL Index

Ola Hallengren’s free scripts for backup, integrity check and index optimization in SQL Server 2005 and 2008, with notes from Ola on how they work.

Read More
SQL SERVER - Disable CHECK Constraint - Enable CHECK Constraint

SQL SERVER – Disable CHECK Constraint – Enable CHECK Constraint

November 12, 2009
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Index, SQL Scripts

Need to disable CHECK constraint validation for a bulk load? Here is how, and how to enable it again with WITH CHECK CHECK CONSTRAINT, the syntax with CHECK twice.

Read More
Index Seek (NonClustered).

SQL SERVER – Removing Key Lookup – Seek Predicate – Predicate – An Interesting Observation Related to Datatypes

November 9, 2009
Pinal Dave
SQL Performance
SQL Index, SQL Scripts

Seek Predicate beats Predicate. An observation from a query optimization project on removing key lookup and how datatypes decide which one you get.

Read More
SQL SERVER - How to Enable Index - How to Disable Index - Incorrect syntax near 'ENABLE'

SQL SERVER – How to Enable Index – How to Disable Index – Incorrect syntax near ‘ENABLE’

October 27, 2009
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts

ALTER INDEX with ENABLE fails with Incorrect syntax near ‘ENABLE’. To enable index after you disable it for a bulk load, you rebuild it instead.

Read More
SQL SERVER - Comic Slow Query - SQL Joke

SQL SERVER – Comic Slow Query – SQL Joke

October 13, 2009
Pinal Dave
SQLAuthority News
SQL Humor, SQL Index, SQL Server, SQLAuthority Author Visit

After Community TechDays in Ahmedabad, many asked for the Comic Slow Query strips I showed in my index session. Here are both, one from before and one after.

Read More
SQL SERVER - Query Optimization - Remove Bookmark Lookup - Remove RID Lookup - Remove Key Lookup - Part 3

SQL SERVER – Query Optimization – Remove Bookmark Lookup – Remove RID Lookup – Remove Key Lookup – Part 3

October 12, 2009
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server

Part 3 of how to Remove Bookmark Lookup, RID Lookup and Key Lookup. A covering index holds every column the query uses in SELECT, JOIN and WHERE.

Read More
Previous 1 … 44 45 46 47 48 49 50 … 62 Next
  • Books
  • Testimonials
  • Privacy Policy

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