Blogs

Next Door to Derpton - When Your Fellow DBA is a Danger to Databases (Dear SQL DBA)

Next Door to Derpton - When Your Fellow DBA is a Danger to Databases (Dear SQL DBA)

on June 9, 2016

What do you do when your fellow DBA is a ticking time-bomb of bad decisions, waiting to explode your production environment?

Continue reading

Merging Boundary Points: Does a Changing Partition_Number Indicate Data Movement?

Merging Boundary Points: Does a Changing Partition_Number Indicate Data Movement?

on June 7, 2016

I received a question from a reader who was testing out a partitioning architecture:

We are testing table partitioning using one filegroup per partition. When we merge a boundary point, we see that partition_number changes in sys.partitions.Β Does this mean that data movement is occurring?

Continue reading

Lost in Performance Troubleshooting - Perf Triage for SQL Server

Lost in Performance Troubleshooting - Perf Triage for SQL Server

on June 2, 2016

Psssttt – I have an updated blog post on this called the Learner’s Guide to SQL Server Performance Tuning

The SQL Server is slow, what should you do? I answer a reader question andΒ share my strategy for performance troubleshooting.

Continue reading

Testing an Insert for Race Conditions with Ostress.exe

Testing an Insert for Race Conditions with Ostress.exe

on May 31, 2016

Whenever we have multiple sessions modifying data, things get tricky. When we have a pattern of “check if the data exists and then do a thing,” multiple sessions get even more complicated.

Continue reading

Bleeding In Edgeville - When Upgrades Come Too Fast (Dear SQL DBA)

Bleeding In Edgeville - When Upgrades Come Too Fast (Dear SQL DBA)

on May 26, 2016

In this episode of “Dear SQL DBA,” I answer a question about early adoption of SQL Server, discuss why testing in production isn’t necessarily crazy, and recommend how to handle requests to upgrade your SQL Server to use new features.

Continue reading

The Case of the Blocking Merge Statement (LCK_M_RS_U locks)

The Case of the Blocking Merge Statement (LCK_M_RS_U locks)

on May 24, 2016

Recently I got a fun question about an “upsert” pattern as a “Dear SQL DBA” question. The question is about TSQL, so it lent itself to being answered in a blog post where I can show repro code and screenshots.

Continue reading

Blogger Tip: Easy Free-Use Images with Pablo by Buffer

Blogger Tip: Easy Free-Use Images with Pablo by Buffer

on May 19, 2016

I’ve gotten a few compliments lately on the images I’ve been using in my posts. Images help engage your readers. You should also set a “featured image” for each post for thumbnail usage in your theme or in RSS readers. But it can be kind of a pain to search for images and make sure the image copyright allows you to use and share it.

Continue reading