String Concatenation SQL Server is one of these things that might be sound until you try to concate longer strings. That is where it gets interesting. String concatenation in SQL Server can be pretty quick but under certain circumstances it can really slow down. Something to be aware of if you are working with larger varchar(max) values that need to …

Performance: String Concatenation in SQL Server Read more »

I was investigating a slow sever recently and discovered almost a million files in the sql server error log directory. This contained job history and backup logs for many years. The error log directory is not a location that I normally check, so I created a script to quickly and easily check how many files are in a SQL Server …

How many files are in your SQL Error log directory? Read more »

Recently when doing a database upgrade for a client, I was informed that we had missed some user procedures, tables and functions in the master database. I needed a way to track all these down so that I could confirm that all the same user objects existed in the new master database, as those on the old server’s master database. …

User objects in the master database Read more »

Finding Serializable QueriesDecember 3, 2019 Serializable, and some of the other isolation levels can have performance implications. Recently I came across a case where I needed to find queries that were being run against a SQL Server that … Latest 100 PostsRead More » November 2019 Release of Database Health MonitorNovember 30, 2019 Thanks to the successful funding campaign on …

Steve Stedman Blog Posts from 2019 Read more »

The team at Stedman Solutions, LLC (Steve, Bill, Derrick, and George) offer a variety of services, but one that I particularly enjoy is the performance tuning work. This usually involves initial contact with a new client who is having performance problems. From there it leads to a quick 30 to 45 minute call to discuss the problem, then a proposed …

Do you need SQL Server Performance Tuning Help? Read more »

The question came up as a blog comment of “To delete 100,000 row chunks from a 9,542,067 row table, how about” Thats a great question. I have had to do something very similar lately. The problem that you run into when you are deleting 100,000 rows is lock escalation. When you run a delete statement with just a few rows …

Q & A – Deleting lots of rows from a huge table. Read more »

Here is a question that I received from a friend today and I thought it would be a good post explaining the details: Steve, I have a question on DBCC FREEPROCCACHE.  I used sp_blitzcache from Brent and it shows that one particular query is horrendous ( I already knew that as I ran it and cancelled it after 10 minutes …

DBCC FREEPROCCACHE – What is the impact. Read more »