A nearest location query in SQL Server needs TOP, STDistance in WHERE and ORDER BY, matching SRIDs, and a checked spatial plan.
Percent of Total With SUM() OVER() in One Query
Calculate percent of total with SUM() OVER(), group and running shares, safe numeric division, and checks for zero totals.
REPLACE With COLLATE: Choose Case Matching Explicitly
REPLACE with COLLATE controls which substrings match. Preview case-dependent results before applying a text replacement policy.
SQLAuthority News – What is an MVP? – How to become an MVP?
What is an MVP, and how do you become one? Leaving the official FAQ aside, here is my own answer to what an MVP really is.
SQL SERVER – Disabled Index and Index Levels and B-Tree
For T-SQL Tuesday I write about my mentor Vinod Kumar and his interesting question, which leads to a disabled index, its index levels and the B-Tree.
SQL SERVER – What are Wait Types, Wait Stats and its Importance
What are wait types and wait stats, and why do they matter? A simple explanation of the three kinds of wait types, starting with resource waits.






