Error 1060 says the rows for a TOP or FETCH clause must be an integer. I tracked down its cause in a friend’s 10000 line stored procedure and fixed it.
SQL SERVER – Identify Last User Access of Table using T-SQL Script
How do you find the last user access of a table? A question at TechEd India 2013 led to this quick DMV script. Keep in mind the data resets on restart.
Masked Values: What Dynamic Data Masking Does Not Hide
A masked column shows zeros, but a user with SELECT can still filter, sort and guess the real values. Here is the proof and the fix.
Does Column Order in CREATE TABLE Change How Rows Are Stored?
Someone wants to reorder columns to shrink rows. I measured it on SQL Server 2025, and the answer is mostly no, with one small exception worth knowing.
How to Add Column at Specific Position in SQL Server
To add column at specific position in SQL Server, you have three tested options, because ALTER TABLE always adds the column last. This post shows a SELECT list, a view for loads and reports, and a full table rebuild. It also explains what the rebuild costs.
BACPAC or Backup: When an Export Is the Wrong Tool
A BACPAC export has rows in it, but it is not a recovery backup. Here is a small demo that shows the difference.







