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 - Time Out Due to Executing DELETE on Large RecordSet

SQL SERVER – Time Out Due to Executing DELETE on Large RecordSet

January 14, 2008
Pinal Dave
SQL Performance
SQL Scripts

Why does a DELETE on large recordset time out? When you want every row gone, use TRUNCATE instead, but keep in mind it resets the identity value.

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 - Execute Same Query and Statement Multiple Times Using Command GO

SQL SERVER – Execute Same Query and Statement Multiple Times Using Command GO

January 9, 2008
Pinal Dave
SQL Performance
SQL DateTime, SQL Scripts

Need to run the same statement several times without copy and paste? Put a number after the command GO, like GO 5, and SQL Server runs the batch that many times.

Read More
SYNONYM' SQL Server Tool Window.

SQL SERVER – 2005 – Introduction and Explanation to SYNONYM – Helpful T-SQL Feature for Developer

January 7, 2008
Pinal Dave
SQL Performance
SQL Scripts

SQL Server 2005 added SYNONYM, a single-part name that replaces a long four part object name. I explain how it saves typing and shields code from changes.

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
Indexes tab in SQL Server object explorer.

SQL SERVER – Enabling Clustered and Non-Clustered Indexes – Interesting Fact

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

When enabling clustered and non-clustered indexes, order matters: enabling the clustered index does not enable the others, but rebuilding all indexes does.

Read More
A rope swing on an oak branch holding a heavy sack of sand, the rope taut, tested before anyone rides it.

Stress Testing a Query Before Release

December 19, 2007
Pinal Dave
SQL Performance
Parameter Sniffing, SQL Performance, SQL Server, SQL Wait Stats, Testing

Stress testing a query before release reveals concurrency and parameter risks; learn to design realistic SQL Server tests and compare useful metrics.

Read More
Previous 1 … 113 114 115 116 117 118 119 … 127 Next
  • Books
  • Testimonials
  • Privacy Policy

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