SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in


VitaminDBA.com is a source of SQL Server News and Tips coming from a SQL Server sr. database analyst with 10 years of IT experience ranging from Windows Server, Network, and SQL Server administration. I upload articles on the blog on a fairly consistent basis with the intention of at least 1 new article a week.

SQL Server Always On Read Only Routing Lists

With the release of SQL Server Always on came the ability to query replica’s and offload read only requests. This enhancement is especially great for reporting type apps by allowing the reports to be generated off the secondary replica’s in the availability group and leave the primary for write and… Read more

0 comments, 1,669 reads

Posted in vitamindba on 23 January 2019

Let’s talk SQL Server Waits: Topic 2 – CXPacket

With our effort to talk about SQL Waits we come across another common wait called CXPacket. Last week we reviewed SOS_Scheduler_Yield.

If you see CXPacket waits on your supported system you can safely assume you have execution plans running parallel. Any time you have queries running parallel you will see… Read more

0 comments, 2,611 reads

Posted in vitamindba on 16 January 2019

SQL Server Transaction Log is full due to XTP Checkpoint Error 9002, Severity 17, State 16

I want to take some time and discuss my experiences with a certain SQL Server error, error 9002. Error 9002 Transaction log is full due to XTP checkpoint.

An XTP checkpoint is similar to a standard database checkpoint (more info on checkpoints here) that is used in the database… Read more

0 comments, 227 reads

Posted in vitamindba on 10 January 2019

Let’s talk SQL Server Waits: Topic 1 – SOS_SCHEDULER_YIELD

Over the next few weeks we will be reviewing some of the common SQL Server Waits. We will explain what they mean and some basic things to resolve the waits.

This week we will review SOS_SCHEDULER_YEILD wait. This wait is associated to how SQL Server interacts with the server CPU.… Read more

0 comments, 1,064 reads

Posted in vitamindba on 3 January 2019

What is the Max Degree of Parallelism setting for SQL Server?

Max Degree of Parallelism is a setting that is often changed to improve performance in SQL Server.  What exactly does Max Degree of Parallelism mean and do?

Modern processors found in servers today are much more powerful and advanced compared to when SQL Server was introduced.  The max degree of… Read more

0 comments, 2,404 reads

Posted in vitamindba on 21 December 2018

Seeing WriteLog wait type on your SQL Server?

One of the more common wait types for SQL Server is called WriteLog.  In its most basic form it is a wait that is experienced as things are being written to the log file.

This wait could be an indication of a major performance problem dealing with log file fragmentation. … Read more

0 comments, 2,344 reads

Posted in vitamindba on 18 December 2018

Get Rid of those unused indexes!

Indexes in relational databases are very helpful and increase the speed to access data.  However maintaining indexes is just as important. 

We recently we worked with a database that was fairly large in size and had several indexes in place.  We discovered that some indexes were not being used by… Read more

1 comments, 163 reads

Posted in vitamindba on 11 December 2018

Enabling Query Store

Performance tuning in SQL Server is one of the main jobs a DBA has.  Starting with SQL Sever 2016 a great tuning tool can be turned on for databases called Query Store.

Query Store is a product designed to help you tune queries based on performance and resource usage.  In… Read more

0 comments, 775 reads

Posted in vitamindba on 5 December 2018

Deadlocks in a SQL Server Database

Deadlocks in SQL Server happen when 2 (maybe more) processes are fighting over a resource in the database and are trying to obtain an exclusive lock on that resource.  When SQL Server decides to pick a process to become it’s deadlock victim, it is an attempt to protect the database… Read more

2 comments, 3,008 reads

Posted in vitamindba on 3 December 2018

Database Stuck in Suspect Mode

My holiday week did not started off very good.  I come in and find a UAT environment database in suspect mode.  Having a database in suspect mode means a few different things could have happened.  Some of the reasons why a databases goes to suspect mode are:

  1.  Files associated to…

Read more

0 comments, 204 reads

Posted in vitamindba on 27 November 2018

Happy Thanksgiving Readers!

I wanted to take a moment and wish an easy week in the office and a Happy Thanksgiving to everyone!


The post Happy Thanksgiving Readers! appeared first on VitaminDBA.

Read more

0 comments, 195 reads

Posted in vitamindba on 19 November 2018

What is the SQL Server Trustworthy database property?

I ran across an interesting property set in a SQL Server database for a customer, the property is called “Trustworthy”.  I myself have heard of the property just not ran across it before to really understand what the property does.

Trustworthy is a database property, meaning it is set for… Read more

0 comments, 2,576 reads

Posted in vitamindba on 19 November 2018

Subscribe to our RSS Feed

Be sure to subscript to our RSS feed to keep up with the latest SQL Server news and tips!



The post Subscribe to our RSS Feed appeared first on VitaminDBA.

Read more

0 comments, 243 reads

Posted in vitamindba on 16 November 2018

Why did my execution plan change?

As a SQL Server DBA it is important to understand why and how the SQL engine works.  Understanding as much as you can with the engine can help you answer some questions from application developers, like why did my execution plan change suddenly?

Execution plans change as the optimizer see’s… Read more

0 comments, 200 reads

Posted in vitamindba on 13 November 2018

Should you update stats for your SQL Server database?

Statistics on database objects are very important to the SQL Server engine optimizing execution plans and running at the most optimal performance.  There is often many times people ask do or do I not need to manually update stats in my database.

The answer to this question is not a… Read more

0 comments, 230 reads

Posted in vitamindba on 6 November 2018

Steps to Create an In-Memory table for SQL Server

Creating a table to be in memory compared to standard tables that use the files on disk can have several performance benefits for high transaction databases.

In memory tables store data in server memory compared to disks and can help eliminate locks and latches on objects.  In memory tables were… Read more

0 comments, 3,708 reads

Posted in vitamindba on 31 October 2018

Using MAXDOP to fix a performance problem

As DBA’s we are sometimes put in a rock and hard place when it comes to database performance.  This situation recently happened with a production application and some nasty production performance issues one particular query was having.

We get a call regarding slow performance on a stored procedure that was… Read more

0 comments, 4,184 reads

Posted in vitamindba on 29 October 2018

Helpful Undocumented Stored Procedure “sp_MsForEachDB”

This week’s post will be a short one to talk about a very helpful stored procedure in SQL Server called “sp_MSForEachDB”.

I ran across this stored procedure when trying to drop a login from multiple databases.  The uses of this stored procedure can go beyond just dropping a login, it… Read more

0 comments, 251 reads

Posted in vitamindba on 30 August 2018

Always On SQL Server Replica in a Disconnected State

Sometimes the SQL logs and application logs provide some great info in regards to errors and issues.  When building an Always On environment the error messages you can possibly run across are very vague and most the time not useful.

In this post we are going to talk about what… Read more

0 comments, 251 reads

Posted in vitamindba on 22 August 2018

Async Network IO SQL Wait

Over the last few days we have been tracking down the cause of some really high async network IO waits.  In order to fix this problem we have to understand the wait and what it is telling us, so that is where we begin.

Async Network IO in my experience… Read more

0 comments, 2,752 reads

Posted in vitamindba on 15 August 2018

Older posts