Living with SQL’s 900 Byte Index Key Length Limit
(Cross-posted to my MSDN blog here.) We recently had a situation where we needed to interface with an external non-relational data source that happened to use really long strings to identify entity...
View ArticleDon’t depend on expression short circuiting in T-SQL (not even with CASE)
There are a fair number of blog posts and forum discussions regarding expression short circuiting in T-SQL. Some of the most authoritative posts, like this one, come to the following conclusions: (a)...
View ArticleRow Goals Gone Rogue
This post discusses “row goals“, but with a twist. The point is to illustrate how row goals can cause unnecessarily slow queries. First, run this script: USE tempdb GO IF OBJECT_ID ('even') IS NOT NULL...
View Article
More Pages to Explore .....