An introduction to FIRST_VALUE and LAST_VALUE, new analytic functions in SQL Server 2012 that return the first and last value from a list.
DENY vs REVOKE: Why a Removed Permission Still Works
You revoked a permission, but the user can still read the table. Here is why, and how DENY and REVOKE really differ.
SQL SERVER – Introduction to CUME_DIST – Analytic Functions Introduced in SQL Server 2012
An introduction to CUME_DIST, a new analytic function in SQL Server 2012 that returns the cumulative distribution of a value, with an example.
SQL SERVER – Updating Data in A Columnstore Index
A reader got an error when updating data in a columnstore index table. Here is why the table becomes read-only and what you can do about it.
SQL SERVER – SSMS 2012 Reset Keyboard Shortcuts to Default
Someone changed the keyboard shortcuts in my SSMS 2012 at a conference. Here is how to reset keyboard shortcuts back to the default settings.
Splitting Work Into Equal-Sized Batches With NTILE
NTILE deals 100 customers into eight batches in one query. The catch is keeping those batches stable while new rows arrive.
How to Read a Stored Procedure You Did Not Write
Learn to read stored procedure code by tracing inputs, writes, transactions, errors, and dependencies before trying to understand every line.







