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 - Introduction to Heap Structure - What is Heap?

SQL SERVER – Introduction to Heap Structure – What is Heap?

March 30, 2008
Pinal Dave
SQL Tips and Tricks
SQL Index

What is Heap? When table data has no logical order and no clustered index, SQL Server stores it as a Heap Structure. I explain pages and extents too.

Read More
Person icon in information card.

SQL SERVER – 2005 – List All Column With Identity Key In Specific Database

March 29, 2008
Pinal Dave
SQL Tips and Tricks
SQL Identity, SQL Index, SQL Scripts, SQL Server, SQL System Table

Question I received in Email : How to list all the columns in the database which are used as identity key in my database?

Read More
SQL SERVER - 2005 - Find Index Fragmentation Details - Slow Index Performance

SQL SERVER – 2005 – Find Index Fragmentation Details – Slow Index Performance

March 27, 2008
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL System Table

A slow index turned out to be heavily fragmented. My quick script uses sys.dm_db_index_physical_stats to show index fragmentation details for every index.

Read More
SQL SERVER - 2005 - A Simple Way To Defragment All Indexes In A Database That Is Fragmented Above A Declared Threshold

SQL SERVER – 2005 – A Simple Way To Defragment All Indexes In A Database That Is Fragmented Above A Declared Threshold

March 4, 2008
Pinal Dave
SQL Performance
SQL Error Messages, SQL Index, SQL Scripts, SQL Server DBCC

The BOL script to defragment all indexes in a database above a declared threshold failed with Msg 2501. I fixed the missing schema prefix so it runs on SQL Server 2005.

Read More
SQL SERVER - 2005 - Find Unused Indexes of Current Database

SQL SERVER – 2005 – Find Unused Indexes of Current Database

February 11, 2008
Pinal Dave
SQL Performance
SQL Index, SQL Scripts

A simple but accurate SQL Server 2005 script to find unused indexes in the current database, since unused indexes slow down INSERT and UPDATE statements.

Read More
SQL SERVER - 2005 - Display Fragmentation Information of Data and Indexes of Database Table

SQL SERVER – 2005 – Display Fragmentation Information of Data and Indexes of Database Table

January 10, 2008
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Scripts, SQL Server DBCC, SQL System Table

How do you find Fragmentation Information for a table in SQL Server 2005? DBCC SHOWCONTIG has limits, so I use sys.dm_db_index_physical_stats instead.

Read More
SQL SERVER - Difference Between Index Rebuild and Index Reorganize Explained with T-SQL Script

SQL SERVER – Difference Between Index Rebuild and Index Reorganize Explained with T-SQL Script

December 22, 2007
Pinal Dave
SQL Performance
SQL Index, SQL Scripts

Index Rebuild drops and recreates the index, while Index Reorganize reorders the leaf nodes. Rebuild above 40% fragmentation, reorganize between 10% and 40%.

Read More
Previous 1 … 53 54 55 56 57 58 59 … 62 Next
  • Books
  • Testimonials
  • Privacy Policy

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