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

vitamindba

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.

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, 105 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, 684 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

0 comments, 242 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, 136 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, 124 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,167 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!

http://vitamindba.com/feed/

 

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

Read more

0 comments, 145 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, 155 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, 164 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,550 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,054 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, 198 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, 197 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,678 reads

Posted in vitamindba on 15 August 2018

Tracking Down tempdb usage

Determining what is causing your tempdb to grow can be difficult at times and troublesome during production issues.  Luckily SQL Server provides some views that produce some helpful information in regards to session usage and query allocations for tempdb.

The main views that detail tempdb usage are:

dm_db_file_space_usage – details… Read more

0 comments, 323 reads

Posted in vitamindba on 8 August 2018

SQL Server Availability Group Auto Seeding Error

SQL Server Availability Group Auto Seeding is a wonderful thing, it saves database administrators time when setting up availability groups.  However I found an issue with the graphical user interface in bedded in SQL Server Management Studio that makes it appear as if auto seeding has failed and SQL Server… Read more

0 comments, 223 reads

Posted in vitamindba on 30 July 2018

Keep up with SQL Server Patches!

Keep up with SQL Server Patches with us with our feed from Microsoft.  Check it out!  http://vitamindba.com/sql-server-releases/

The post Keep up with SQL Server Patches! appeared first on VitaminDBA.

Read more

0 comments, 250 reads

Posted in vitamindba on 26 July 2018

Patch and Update SQL Server via Command Line

No one likes to patch or update SQL Server, it takes time and can make for very long days.  I have been using a silent or quiet install of SQL Server patches used the Windows command line for a while now and it has cut down on the time it… Read more

0 comments, 129 reads

Posted in vitamindba on 25 July 2018

Set up Instant File Initialization for SQL Server

When a space growth operation is done within SQL Server (create, restore, auto-grow) the engine places zeros across the file system and then overwrites them to handle the growth.  Depending on the size of the growth what I explained above will obviously have some sort of performance impact.  Starting with… Read more

0 comments, 84 reads

Posted in vitamindba on 23 July 2018

Performance Tuning Exercise: Lazy Table Spool

Folks, it’s time for a bit of a performance tuning exercise.  Below is a real world situation where a stored procedure was taking greater than 22 minutes to complete.  The stored procedure was retrieving a top 1000 and doing some joins with other tables.  CPU usage was abnormally high on… Read more

0 comments, 110 reads

Posted in vitamindba on 18 July 2018

Older posts