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
Image of database table.

SQL SERVER – Script to Update a Specific Column in Entire Database

June 4, 2013
Pinal Dave
SQL Tips and Tricks
SQL Joins

A reader added a ModifiedDate column to every table and left it NULL. Here is a script to update a specific column in the entire database at once.

Read More
A fresh photo print of a runner at the finish hanging to dry by a red clip in a darkroom

The Last Actual Execution Plan: LAST_QUERY_PLAN_STATS in Practice

June 3, 2013
Pinal Dave
SQL Performance
Execution Plan, SQL Cache, SQL DMV, SQL Server, SQL Server 2019

Capture the last actual execution plan with LAST_QUERY_PLAN_STATS, inspect runtime rows, and understand what cache retention cannot provide.

Read More
A private path through a hedge to a red side gate, the front door shut

Connecting to SQL Server From Home Without Exposing Port 1433

June 2, 2013
Pinal Dave
SQL Tips and Tricks
Computer Network, SQL Connection, SQL Server, SQL Server Encryption, SQL Server Security

Keep port 1433 off the public internet by checking external reachability and using VPN, a jump host, Bastion, and trusted encryption.

Read More
A glass vase of beans in colored layers, a scoop from the top holding only red beans.

TABLESAMPLE Samples Pages, Not Rows: Sampling a Large Table Right

June 1, 2013
Pinal Dave
SQL Tips and Tricks
SQL Random, SQL Scripts, SQL Server

Compare TABLESAMPLE page sampling with NEWID sorting and CHECKSUM filters by row count, reads, spread, and repeatability.

Read More
Gouache painting of a tidy wooden workshop after spring cleaning, with closed boxes by the door, one vermilion, and a broom.

Blog Clean-Up: What a 20-Year-Old Blog Removed in 2026

May 31, 2013
Pinal Dave
Personal
Best Practices, Blogging, WordPress

A blog clean-up is the work nobody sees and every reader feels. This post lists what a 20-year-old blog removed and fixed in 2026: plugins, unused images, thin tags and dead announcements. Each step comes with a lesson for any blogger.

Read More
SQL Server expected answer.

SQL SERVER – Add Identity Column to Table Based on Order of Another Column

May 30, 2013
Pinal Dave
SQL Tips and Tricks
SQL Identity

A reader wants to add identity column values to an existing table in the order of another column, not the default order. Here is my answer. Do you know a better one?

Read More
Gouache painting of an empty bowl and a stone-filled bowl on a balance, above matching empty and occupied wooden recesses.

ANSI_NULLS Puzzle and NULL in SQL Server: SQL in Sixty Seconds #052

May 29, 2013
Pinal Dave
SQL Video
SQL Deprecated Feature, SQL in Sixty Seconds, SQL NULL, SQL Scripts

This ANSI_NULLS puzzle starts with two queries that look alike, and only one returns a row. The tests here explain the NULL logic behind IN and NOT IN, show what SET ANSI_NULLS OFF still does on SQL Server 2025, and give a safer pattern for real queries.

Read More
Previous 1 … 487 488 489 490 491 492 493 … 849 Next
  • Books
  • Testimonials
  • Privacy Policy

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