SQL Server Support end dates belong in upgrade planning before the deadline. My original post followed the July 2019 support transition.
How to Find Definition of Computed Column in SQL Server using T-SQL? – Interview Question of the Week #233
Question: How to Find Definition of Computed Column in SQL Server using T-SQL?
Answer: A very fair question, I received the other day.
Delete Qualified Rows From Multiple Tables: A SQL Puzzle
Delete qualified rows from multiple tables with as few logical reads as you can. This puzzle gives a setup script for three small tables, the two rules for the delete and a starting script that costs 19 logical reads. Your task is to beat that number and stay correct.
SCHEMA_ONLY vs SCHEMA_AND_DATA for Memory-Optimized Tables
Compare SCHEMA_ONLY and SCHEMA_AND_DATA memory-optimized tables, inspect logging and recovery, and test an isolated offline-online cycle.
DBCC DROPCLEANBUFFERS Impact on Memory: See a Cold Cache in Action
DBCC DROPCLEANBUFFERS removes every clean page from memory, so the next query reads from disk. This post counts the pages of one database before and after, shows why a CHECKPOINT comes first, and compares a cold read with a warm read.
PARALLEL_BACKUP_QUEUE Wait on a Slow RESTORE FILELISTONLY
A reader asked me what the PARALLEL_BACKUP_QUEUE wait means. Their RESTORE FILELISTONLY ran for a long time on a backup of about 1.5 TB and ended with a media error. I believe a problem with the backup media makes the command run long and shows this wait.
Sessionizing Events: Grouping Activity Into Sessions by Idle Gap
Your events have a user and a time but no visit ID. Here is how to infer sessions from an idle gap with LAG and a running sum.







