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
Gouache painting of two crates of pears, one holding duplicates with a red pear and one holding only single pears

UNION vs UNION ALL in SQL Server: What Each One Does

April 26, 2013
Pinal Dave
SQL Tips and Tricks
SQL Distinct, SQL Scripts, SQL Server, SQL Union clause

UNION vs UNION ALL comes down to duplicates: UNION removes them and UNION ALL keeps every row. This post tests both on two small store tables. It also covers sorting, a total row at the bottom, mixed operators and data type rules.

Read More
SQL SERVER - Return Specific Row to at the Bottom of the Resultset - T-SQL Script

SQL SERVER – Return Specific Row to at the Bottom of the Resultset – T-SQL Script

April 23, 2013
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server

How do I return a few chosen rows at the bottom of the entire resultset, in my own order? A T-SQL script on AdventureWorks shows how to do it.

Read More
Several hands reaching into a crate of oranges, each taking a different one, one hand passing over a held orange.

UPDLOCK and READPAST for Queue Tables

April 22, 2013
Pinal Dave
SQL Tips and Tricks
Query Hint, SQL Lock, SQL Server, SQL Transactions

UPDLOCK and READPAST let SQL Server queue workers claim different rows safely when transactions, retries, and completion rules are designed.

Read More
Three sorting bins in a row with a red rubber boot on the ground that fits none.

CASE Expression Pitfalls: NULL Tests and Data Type Precedence

April 20, 2013
Pinal Dave
SQL Tips and Tricks
SQL CASE, SQL Datatype, SQL NULL, SQL Server

Reproduce CASE expression traps with NULL tests, mixed result types, missing ELSE, and nesting, then apply clear rewrites.

Read More
A cutaway architectural model on a table showing identical rooms stacked on four floors inside one building.

SQL Server on a Virtual Machine: What Actually Changes

April 19, 2013
Pinal Dave
SQL Performance
Best Practices, SQL Performance, SQL Server, Virtualization

SQL Server on a virtual machine cannot see the host it is sharing. Why more virtual processors can be slower, what memory reservation buys you, why snapshots are not backups, and the four things I check first.

Read More
Flower frog holding selected stems while an unused stem remains outside the vase

Loading a CSV Whose Columns Do Not Match the Table

April 18, 2013
Pinal Dave
SQL Tips and Tricks
CSV, ETL, SQL Server

Your supplier’s CSV has an extra column and a different order. Here is how to load it safely, with a header check and a staging table.

Read More
Two identical generators side by side in a plant room, one running with a green lamp lit and one on standby.

SQL SERVER – Get High Availability with SQL Server 2012

April 16, 2013
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL High Availability, SQL Server

SQL Server 2012 offers several High Availability options, including up to four active secondaries. Here is what they give you and how a course can help.

Read More
Previous 1 … 274 275 276 277 278 279 280 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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