Skip to content
Unlit lightbulb sitting in sand

How to make your T-SQL thirty percent faster

  • by

Last week, I mentioned a feature in SQL Server, and now in Azure SQL Database, called Memory-Optimized Table-Valued Parameters, which makes use of In-Memory OLTP structures to work around a dependency on tempdb, and thereby… 

Memory-Optimized Table-Valued Parameters

  • by

November brings me back to my regular weekly posting schedule. I attended PASS Summit 2016 last week, and saw a lot of great sessions. Aside from the new stuff, what I also noticed is how… 

Automation is the new Black

  • by

I’ve been toying with the idea of automating a set of diagnostic scripts that I run on customer sites, when doing my checkup. It mirrors the automation that a lot of consulting shops do, but… 

A dalliance with distance

  • by

During a recent engagement, I was tasked with making a query faster. Since I signed an NDA (Non-Disclosure Agreement), I can’t go into detail, but it made extensive use of the STDistance() function of the… 

Max Server Memory Revisited

  • by

Some time ago, I added a free resource to this site to help DBAs know how much max server memory should be assigned to SQL Server, based on an algorithm by Jonathan Kehayias. On 19… 

Saving Time By Splitting Files for a Backup

During a recent engagement with a client transferring large files from on premises to Azure Storage, we discovered that files over a certain size are automatically throttled, causing file uploads to take much longer than expected.… 

Expiration Date on Database Backups

What does the expiration date mean on SQL Server database backups? In SQL Server Management Studio, there’s an option in the Back Up Database wizard which explicitly provides an option for “Backup set will expire”.… 

The ongoing saga of a slow tempdb on a fast server

  • by

Last week, I wrote about what should have been a fast system but was performing very poorly, weighing heavily on tempdb I/O performance. Our original changes did not make much of a difference, but now… 

Survey: Light or Dark

  • by

This week I am continuing with the simple survey series. Today my question is, do you prefer using a dark or light background when writing code? I like a light background with dark text (usually… 

Survey: Tabs or Spaces

  • by

This is my second survey for the month of December. Last week I asked about join predicate order. This week, it’s a simple question: Do you prefer tabs or spaces to indent your T-SQL, and… 

Survey: Join Predicate Order

  • by

It’s a quiet month as we look forward to 2016, so I’m asking a series of survey questions for the next few posts. My first one is about the order of join predicates. When joining… 

Numbers on metal deposit boxes in a bank

Do it now: Date and Number tables

  • by

Your production environment needs Date and Number tables, to help you Get Stuff Done in sets instead of RBAR*. Doug Lane has a video on Why You Simply Must Have a Date Table. I really… 

SQL Server 2000 logo

The curious case of RESOURCE_SEMAPHORE

  • by

A customer is running in a SQL Server 2000 environment, 32-bit AWE mode, on 64-bit Windows 2003 R2. The server has 16GB of RAM and 8 logical CPU cores. It’s running under VMWare. Storage is…