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 results window with contact information.

SQL SERVER – Interesting Observation about Order of Resultset without ORDER BY

November 24, 2008
Pinal Dave
SQL Performance
SQL Constraint and Keys, SQL Scripts

Two simple AdventureWorks queries return the same rows in a different order without ORDER BY. I explain why that order is never guaranteed.

Read More
A stone-sorting tray has visible stones and one linen-covered compartment concealing its contents.

Nullable NOT IN: Read the Row Count Spool Carefully

November 14, 2008
Pinal Dave
SQL Performance
SQL NULL, SQL Performance, SQL Sub Query

Nullable NOT IN needs a clear rule for unknown identifiers. Compare NULL and empty-set results before changing the query or interpreting a Row Count Spool.

Read More
A row of plain glass jars holds different levels of sand on a sunlit shelf.

Baselines: Knowing What Normal Looks Like

November 12, 2008
Pinal Dave
SQL Performance
Best Practices, Database, SQL Scripts, SQL Server

Build a SQL Server baseline with timestamped workload, wait, and IO samples so you can compare a slowdown with a similar period of normal work.

Read More
Two identical brass compasses on a workbench, one needle pulled aside by a nearby iron vise

Why One Query Has Two Cached Plans: SET Options and plan_attributes

November 8, 2008
Pinal Dave
SQL Performance
Execution Plan, Parameter Sniffing, SQL Cache, SQL DMV, SQL Server

Investigate two cached plans with plan_attributes, decode differing SET options, and match application settings before diagnosing skew.

Read More
SQL SERVER - Refresh Database Using T-SQL

SQL SERVER – Refresh Database Using T-SQL

November 7, 2008
Pinal Dave
SQL Performance
SQL Scripts, SQL Server DBCC, SQL Stored Procedure

Can you refresh database in Object Explorer using a T-SQL query? No. But if cached objects changed, DBCC commands can clear the cache for you.

Read More
SQL SERVER - DECLARE Multiple Variables in One Statement

SQL SERVER – DECLARE Multiple Variables in One Statement

October 31, 2008
Pinal Dave
SQL Performance
Best Practices, SQL Scripts

Yes, you can DECLARE multiple variables in one statement in SQL Server. Compare both methods side by side: one statement per variable, or all in one line.

Read More
Execution plan for merge join.

SQL SERVER – INNER JOIN using LEFT JOIN statement – Performance Analysis

October 25, 2008
Pinal Dave
SQL Performance
SQL Joins, SQL Scripts

Can you write an INNER JOIN using LEFT JOIN? Yes, and the result is the same, but my performance analysis in AdventureWorks shows why you should not.

Read More
Previous 1 … 105 106 107 108 109 110 111 … 127 Next
  • Books
  • Testimonials
  • Privacy Policy

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