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 - Three Rules to Use UNION

SQL SERVER – Three Rules to Use UNION

October 14, 2007
Pinal Dave
SQL Performance
SQL Joins, SQL Scripts, SQL Union clause

The three rules to use UNION from Ben Forta’s T-SQL book: two or more SELECT statements, the same columns in the same order, and compatible data types.

Read More
SQL SERVER - 2005 - Explanation of TRY…CATCH and ERROR Handling With RAISEERROR Function

SQL SERVER – 2005 – Explanation of TRY…CATCH and ERROR Handling With RAISEERROR Function

October 3, 2007
Pinal Dave
SQL Performance
SQL Error Messages, SQL Scripts

Yes, TRY…CATCH can use the RAISEERROR function. A developer said I never showed it, so here are simple SQL Server 2005 examples with and without it.

Read More
SQL SERVER - 2005 - OUTPUT Clause Example and Explanation with INSERT, UPDATE, DELETE

SQL SERVER – 2005 – OUTPUT Clause Example and Explanation with INSERT, UPDATE, DELETE

October 1, 2007
Pinal Dave
SQL Performance
SQL Scripts

The SQL Server 2005 OUTPUT clause returns the rows changed by INSERT, UPDATE or DELETE. Each OUTPUT clause example below shows how.

Read More
A gouache river ledge contrasts loosely stored pebbles with a row held by an explicit wooden guide.

SQL SERVER – Order of Result Set of SELECT Statement on Clustered Indexed Table When ORDER BY is Not Used

September 24, 2007
Pinal Dave
SQL Performance
SQL Index, SQL Order By, SQL Server

A Clustered Indexed Table still needs ORDER BY to promise result order. I declare the order the reader or application requires.

Read More
A pot of soup on a stove beside a counter of bowls already ladled, a hand choosing between them.

Scaling Out Read Queries

September 18, 2007
Pinal Dave
SQL Performance
AlwaysOn, Query Store, SQL Cache, SQL Performance, SQL Server

Scaling out read queries uses replicas, caches, and routing with measured freshness and operating cost; learn when each path fits.

Read More
Envelopes dropping through a letter slot into a large basket

Designing Tables for High Insert Rates

September 17, 2007
Pinal Dave
SQL Performance
Clustered Index, SQL Index, SQL Server, Table Partitioning, Transaction Log

High insert rates depend on key choice, row width, index count, and retention design; learn a practical SQL Server table layout for sustained writes.

Read More
Click to include actual execution plan.

SQL SERVER – Actual Execution Plan vs. Estimated Execution Plan

August 28, 2007
Pinal Dave
SQL Performance
DBA, Execution Plan, SQL Scripts

Actual Execution Plan or Estimated Execution Plan? I always use the actual plan because it is accurate. Shortcuts: CTRL+M for actual, CTRL+L for estimated.

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

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