SQLpassion BLOG

Do you ever wanted to know how a simple CPU is actually implemented?

Today’s blog posting is a little bit off-topic, but still quite interested when you work in the IT area. Maybe a few of you already know it, but over the last few years I have worked (and I’m still working) on a quite interesting side project: I’m developing my own CPU based on primitive AND, …

Do you ever wanted to know how a simple CPU is actually implemented? + read more

Do you need more than STATISTICS IO for Query Tuning?

The session option STATISTICS IO is my friend during query tuning engagements, because it tells you exactly how many page reads you had for a specific query. Every time that SQL Server requests a page of 8KB from the Buffer Pool, it gets logged through the output of STATISTICS IO. As a general guide I …

Do you need more than STATISTICS IO for Query Tuning? + read more

Plan Caching

Today I want to talk more about Plan Caching and its side-effects in SQL Server. As you might know, every logical query submitted to SQL Server is compiled into a physical execution plan. That execution plan is afterwards cached in the so-called Plan Cache for further reuse. Let’s talk in the first step about adhoc SQL statements …

Plan Caching + read more