Earlier this week I had multiple engagements of Comprehensive Database Performance Health Check. While working with one of the customers we realized that when we query sys.databases for one of the databases, we always see column log_reuse_wait_desc containing reasons AVAILABILITY_REPLICA. The customer was really curious about what it means. Let us see what we found out after quick research.
SQL SERVER – Identifying Query Growing TempDB
During the recent Comprehensive Database Performance Health Check we observed that the size of the TempDB is very big for our customer. The first question which they asked was if there is any way they can identify query growing TempDB.
SQL SERVER – Monitor Estimated Completion Times for Backup, Restore and DBCC Commands
Earlier this week, we were fortunate to receive an amazing script to overview HADR / AlwaysOn Local Replicate server from SQL Server Expert Dominic Wirth. You can read the amazing script here: Scripts to Overview HADR / AlwaysOn Local Replica Server. As a follow up to the previous conversation today I received another extremely helpful script from Dominic Wirth which I will be using with my customers every single day. In this blog post, we will see the script which will Monitor Estimated Completion Times for Backup, Restore and DBCC Commands.
SQL SERVER – Simple Method to Extract Scale Part From Decimal Number
In my earlier post on “SQL SERVER – Different Methods to Extract Scale Part From Decimal Number”, I had shown you how to extract only the decimal part from a number. The post had three different methods to Extract Scale Part From Decimal Number. Recently I have found a very simple method to extract the decimal part and want to share with my blog readers.
SQL SERVER – SSMS – Enable Line Numbers in SQL Server Management Studio
During the Comprehensive Database Performance Health Check, I never take access to the server. We always connect via GoToMeeting or WebEx. Due to the security issue, I always prefer that I never log in to the server directly but I always like to teach and guide DBAs who are working with me on another side, how to do SQL Server Performance Tuning. However, while I do this, I face often challenge when I am looking at the screen and tell DBA on the other side to change any specific part of the query. This is when I believe the trick of enabling line numbers in SSMS comes in handy.
SQL SERVER – Automated SQL Server Consolidation and Right Sizing – Save 50% Data Platform Costs
If you have ever needed to implement a large-scale data platform migration or consolidation project, you are definitely familiar with many of the pain points faced during the process. Firstly, manual data collection is very tricky to arrange and demands lots of work. Secondly, the planning of the capacity is a complex and detailed process – you need to take all the performance counters, their threshold levels and SLA’s, trends, different server benchmarks and such into account. When it comes to the consolidation effort, it is impossible to try to rearrange the SQL Server instances into a most optimal target server setup with manual work. All this takes a lot of time and is prone to human error.