Author Archives: Robert

Creating a virtual machine with Vboxmanage

Lately, I’ve been creating, deleting and recreating a lot of virtual machines with Oracle VirtualBox. So today, when I needed to start with a clean environment, I decided to create a virtual machine using the command line instead of the … Continue reading

Posted in Uncategorized | 1 Comment

Two wrongs make a right: tricking the query optimizer

Sometimes, the query optimizer makes mistakes. Instead of selecting the most optimal plan, a sub-optimal plan is chosen, and it is your task as a DBA to help SQL choose the right plan. In this case, the optimizer overestimated the … Continue reading

Posted in Performance | Leave a comment

Code samples for my book on Database Fundamentals (MTA 98-364)

A while ago, I’ve published my book on  Database Fundamentals for SQL Server 2008. The book covers everything you need to know to pass the Microsoft exam on this topic, the MTA 98-364. This exam is part of the Microsoft … Continue reading

Posted in MTA 98-364 | Leave a comment

Code samples for my book on Database Fundamentals (MTA 98-364), chapter 3

Chapter 3, Using Multiple Tables.  

 

Posted in Code samples, MTA 98-364 | Leave a comment

Code samples for my book on Database Fundamentals (MTA 98-364), chapter 2

Code samples for chapter 2, using a Single Table.

   

Posted in Code samples, MTA 98-364 | Leave a comment

Finding the application timeout

The problem Last week, an application started reporting SQL timeouts. By default, SQL does not have a query timeout; it is the application that decides it doesn’t want to wait any longer. The question was: how do we find out … Continue reading

Posted in Performance | Leave a comment

The curious case of the trailing space

Some weeks ago, a developer told me he had found some strange behavior in SQL Server. Someone immediatelly yelled “bug”. Comments like this always grab my attention. More often than not, however, it’s not a bug. That also turned out … Continue reading

Posted in T-SQL | Leave a comment

Index reorg problem

Problem Recently, we upgraded an application to a new version. The following night, our standard maintenance plan failed. The job output log file gave the following error: Failed:(-1073548784) Executing the query “ALTER INDEX […] ON […” failed with the following … Continue reading

Posted in Indexes | Leave a comment

Hello world!

This is my first blog post. I’ll skip introducing myself, because you can read more than enough about me in the section that is appropriately labeled “about me”. Instead, I’ll tell you why I’m starting this blog. The main reason … Continue reading

Posted in Blogging | Leave a comment