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 - 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
A hand topping cupcakes with red raspberries, the last cupcake left plain on the tray.

CROSS APPLY and OUTER APPLY in Everyday Queries

April 13, 2013
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Joins, SQL Scripts, SQL Server

Use CROSS APPLY and OUTER APPLY for per-row functions, reusable expressions, VALUES unpivoting, DMV text, plans, and latest rows.

Read More
Previous 1 … 268 269 270 271 272 273 274 … 416 Next
  • Books
  • Testimonials
  • Privacy Policy

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