Error 147: An aggregate may not appear in the WHERE clause. A beginner was stuck on it for a long time, so here is the simple fix, explained for beginners.
Timed-Out Queries in Query Store: Finding Aborted Executions
An aborted row is a clue, not a verdict. Here is how to read Query Store execution types and match them with what the caller saw.
Multi-Value Report Parameters in T-SQL Without Dynamic SQL
A report that sends 1, 2, 2, 3 does not need dynamic SQL. Here is how to split, validate and match the list safely.
SQL Error Actions: What SQL Server Does After an Error
SQL error actions decide what runs after an error in SQL Server. This post shows statement termination, scope abortion, batch termination, connection termination and XACT_ABORT, with real results from three small stored procedures. It also covers what each reaction does to an open transaction and how TRY…CATCH changes the outcome.
SQL SERVER – FIX: ERROR Msg 5169, Level 16: FILEGROWTH cannot be greater than MAXSIZE for file
Msg 5169, FILEGROWTH cannot be greater than MAXSIZE for file, stumped a friend new to SQL Server. Here is how I recreated the error and fixed it.
T-SQL Errors and Reactions Demo: SQL in Sixty Seconds #005
This T-SQL errors and reactions demo follows episode #002 with queries you can run. It shows what a CATCH block can read, how severity is stored, how to log a failure and keep going, and why THROW keeps the original error while RAISERROR replaces it.
Guest User in msdb: Keep CONNECT and Avoid Error 916
The guest user in msdb needs CONNECT permission for features that run under logins without a user there. I reproduced error 916 in a test database on SQL Server 2025, with a query to check guest in msdb and a way to list every database where guest can connect.







