CLR vs. T-SQL: Performance considerations
I am pretty sure that all of us read or even participated in quite a few heated discussions about Common Language Runtime (CLR) code in Microsoft SQL Server. Some people state that CLR code works...
View ArticleOptimizing SQL Server Spatial Queries with Bounding Box
SQL Server supports two data types to store spatial information – geometry and geography. Geometry supports planar, or Euclidean, flat-earth data. Geography supports ellipsoidal round-earth surface....
View ArticleUnwinding Table Spools
One of the questions I have often been asked during various SQL Server events is what exactly Table Spool operator does in execution plan. I would try to answer it today. Spool operators, in the...
View ArticleWriting Triggers in the Right Way
The only correct way of writing triggers is not writing them. I would repeat – the only correct way of writing triggers is not writing them. Triggers negatively affect performance. AFTER triggers...
View ArticlePlan Cache: Plan Reuse
Last time we have discussed how parameter sniffing can affect the quality of generated execution plans. Today, I would like to talk about another aspect of plan caching, which is plan reuse. Plans,...
View ArticleOptimizing Substring Search Performance in SQL Server
The requirement of searching data by part of the value is very common in business applications. All of us are familiar with it – users want to be able to search by entering just a few letters from the...
View ArticleCompressing LOB (XML) Data in the Database
Some time ago we have discussed the several techniques that can help reducing the database size. I have received quite a few responses on that post and several people asked if I could provide more...
View ArticleImplementing Sliding Windows Data Purge Pattern with Columnstore Indexes
It’s been a while since my last blog post. Many things happened, including another great PASS Summit where I presented the session of Data Partitioning (by the way, you can download the slides and...
View ArticleLocking in Microsoft SQL Server (Part 21) – Intro Into Transaction Management...
As strange as it sounds, I have never considered transaction management to be the topic that requires explanation. However, it seems that some aspects of it are confusing and may benefit from the...
View ArticleBlocking Monitoring Framework: Capture and Analyze SQL Server Blocking and...
If you worked with SQL Server for a while, you should have noticed how landscape changed over the years. We are dealing with the different problems now. Five years ago, majority of the issues I saw...
View Article
More Pages to Explore .....