Many shops have had jobs shrinking database files for years. Tim shares a simple script to find those jobs so you can deal with them.
First Day and Last Day of a Month in MySQL and SQL Server
Finding the first day and last day of a month in MySQL takes LAST_DAY and a little date arithmetic. This post checks leap years and timestamp filters, then repeats the task in SQL Server with EOMONTH and DATETRUNC, tested on SQL Server 2025.
SQL SERVER – What is SSAS Tabular Data Model and Why to Use it
Tabular mode is new in SQL Server 2012 Analysis Services. Here is what the SSAS Tabular Data Model is, why to use it over multidimensional and how to start one.
SET XACT_ABORT ON: Stopping Timeouts From Leaving Open Transactions
Use SET XACT_ABORT ON to prevent client timeouts from leaving transactions and locks open, with TRY CATCH and a sleeping-session query.
SQL SERVER – Unable to ALTER Computed Column in SQL Server – How to ALTER Computed Column
Want to ALTER computed column logic in SQL Server? You cannot, it throws Msg 156. Here is how to drop and recreate the computed column instead.
SQL SERVER – Last Full Differential and Log Backup Finish Times
I check backup time separately for full, differential and log backups. One latest timestamp cannot describe the entire recovery chain.







