One of the most common missed configuration settings in SQL Server is the cost threshold for parallelism. By default it is set to 5, meaning that when SQL estimates that the cost of a query will be greater than 5 running a serial plan, SQL will split the plan into...
SQL Server Blog Posts
Migrating Your AlwaysOn DR Node to a Different Location
There may be a situation when you need to move one of your servers that is part of an Availability Group to a different data center and the IP address for that server will change. In this example, we will be moving a DR node from one data center to another and change...
WSFC Fixing Errors for AlwaysOn Availability Group or AlwaysOn Failover Cluster Instances (SQL Clustering)
As a SQL Server DBA, there will be times when you will cross over into the system administrator realm of responsibilities or at a minimum explaining them how to fix errors so your SQL environment runs better. WSFC (windows server failover cluster) is setup for...
Reducing the Use of TempDB to Keep Costs Down
There comes a time in everyone's life that they need to be concerned about tempdb. I know… we all have configured it correctly and it's running great. The application and all of the developers are using it like crazy …Wait… that may not be a good thing. Right?...
CTEs and Client Statistics
CTEs may not be used for performance but there are times they could help you from a performance standpoint. The following example uses the same logic written in a way to use three different types of temporary objects. It shows what is done with each process using...
Setup AD for AlwaysOn Listener
When you create a new Availability Group there are a couple of administrative tasks that should be completed before creating your Availability Group within SQL Server. This will elevate any domain permission issues when you are trying to create your Availability Group...
Can’t Join a Server During the Creation of an Availability Group
I had an issue where I was trying to create a new Availability Group. During the creation process, it sits at the "Joining 'DBName' to availability group 'AGName' on 'servername'" step for a very long time. You are either forced to cancel and delete the AG or wait...
How to Enable TDE on Availability Group
Transparent Data Encryption(TDE) encrypts SQL and azure database files by encrypting data at rest. In a situation where your physical media such as data, log and backup files get stolen the malicious party can restore/attach the database and retrieve data. TDE...
SQL Server Instance, Login, Database, Schema, User
What's in a name? When it comes to different Relational Database Management systems (RDMS) it can be confusing. The same words have different meaning depending on the software. SQL Server Database Engine has Instances, Logins, Databases, Schema, and User. When a DBA...
What’s New in SQL Server 2017
You may have heard a lot of talk about some new features and enhancements coming with SQL Server 2017 and for good reason. From database administrators to developers and report writers, there's something new and exciting for just about everyone. While the spotlight...