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 - 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
SQL SERVER - DISTINCT Keyword Usage and Common Discussion

SQL SERVER – DISTINCT Keyword Usage and Common Discussion

December 20, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts

Can you apply the DISTINCT keyword to only one column in a SELECT? No, it always applies to all the columns. I explain why and get the same result with GROUP BY.

Read More
Gouache painting: at a harbor quay, stone steps run down into calm water, with the waterline as zero

CEILING and FLOOR: Negative Values Change the Direction

December 19, 2007
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

CEILING and FLOOR follow numeric order even below zero. This example compares both boundaries with truncation and explicitly defines its displayed decimal types.

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
SQL SERVER - Get Information of Index of Tables and Indexed Columns

SQL SERVER – Get Information of Index of Tables and Indexed Columns

December 18, 2007
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts

sp_helpindex is a handy stored procedure that shows every index on a table, its description and the indexed columns. One line of T-SQL does it.

Read More
A gouache inspection shed displays differently shaped vessels and their current fill levels beside a small lens.

SQL SERVER – T-SQL Script to Find Details About TempDB Information

December 17, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL TempDB

TempDB Information starts with the files and their actual locations. I inspect every data and log file before proposing changes.

Read More
SQL SERVER - Solution - Log File Very Large - Log Full

SQL SERVER – Solution – Log File Very Large – Log Full

December 16, 2007
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Data Storage, Transaction Log

Is your log file too big, or is the log full? Fix it in three steps: back up the log file, truncate it, then shrink it. I link my two detailed posts too.

Read More
A gouache greenhouse station combines removable seed trays with a fixed supporting frame and a red retaining latch.

SQL SERVER – TempDB Restrictions – Temp Database Restrictions

December 15, 2007
Pinal Dave
SQL Interview Questions and Answers
SQL Constraint and Keys, SQL Server, SQL TempDB

TempDB Restrictions follow from how SQL Server recreates and uses this system database. I check them before applying user-database maintenance habits.

Read More
A small pilot boat running alongside a large cargo ship entering a harbor, a rope ladder hanging between them.

Working With an Outsourced Database Team

December 14, 2007
Pinal Dave
SQL Tips and Tricks
Consulting, DBA, Outsourcing Technology, SQL Server Security

An outsourced database team needs a clear scope, controlled access, useful reporting, and a plan to keep operational knowledge in house.

Read More
Previous 1 … 546 547 548 549 550 551 552 … 590 Next
  • Books
  • Testimonials
  • Privacy Policy

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