Notes on SQL

Random articles from a puzzled DBA


Background


While looking at a system that I’m unfamiliar with, I queried the server setting for Maximum Degree of Parallelism (MAXDOP). It hadn’t been set to what I believed it should have been but I was then shown the MAXDOP setting against the database properties. I wasn’t aware that this existed, and it raised a few questions.

Continue reading



A recently created email profile had the wrong name, so needed to be changed. It isn’t possible to change it via the SSMS wizard and I struggled to find an article for such a thing. Then I turned to CoPilot, and it was wrong. To be fair to that software, there is a warning that the answers might be incorrect. However, the references that it provided gave me the threads that I could follow.

Continue reading

As part of the security standards required in my area there is a need to track several areas of database and SQL Server activity. Whilst using a much earlier version of SQL Server, we had a hand-crafted solution. Now we are using the latest version of SQL Server, it is time to use the tried and tested tools that Microsoft have provided.

Read more: SQL Audit – Basic Example Continue reading

Subtitle – Distributed AG, the Gift That Keeps on Giving

Overview

Unexpectedly, we had a connection timeout/failure between a couple of nodes of our Availability Group (AG). None of the documented causes of this (that we could find) were responsible for this, until somebody asked a very simple question….

Continue reading

Overview

Several of the instances in an Availability Group (AG) that I look after, have some of the Temp DB data files stored on the C: drive. This is generally not a good idea – certainly when you have another drive allocated for the TempDB. All TempDB files need to be in the correct location and moving them isn’t as difficult as some people would appear to believe.

Continue reading