Understanding Optimizer Timeout and how Complex queries can be Affected in...
What Is Optimizer Timeout? SQL Server uses a cost-based query optimizer. Therefore, it selects a query plan with the lowest cost after it has built and examined multiple query plans. One of the...
View ArticleAGLatency report tool introduction
I wrote an article to discuss about data movement latency between AG groups: Troubleshooting data movement latency between synchronous-commit AlwaysOn Availability Groups Now I develop a tool to...
View ArticleJuly 10, 2018 Windows updates cause SQL startup issues due to “TCP port is...
We have recently become aware of a regression in one of the TCP/IP functions that manages the TCP port pool which was introduced in the July 10, 2018 Windows updates for Windows 7/Server 2008 R2 and...
View ArticleLesson learned from an Availability Group performance case
Writer: Simon Su Technical Reviewer: Pam Lahoud, Sourabh Agarwal, Tejas Shah Problem description One of my customers implemented a very high workload synchronous AG (Availability Group) solution and...
View ArticleTroubleshooting SQL Server Scheduling and Yielding
Writer: Simon Su Technical Reviewer: Pam Lahoud, Sourabh Agarwal, Tejas Shah Scheduling and Yielding Knowledge Recap We all know that SQL server is a multi-threads and multi-tasks system and it has...
View ArticleTroubleshooting data movement latency between synchronous-commit AlwaysOn...
Writer: Simon Su Technical Reviewer: Pam Lahoud, Sourabh Agarwal, Tejas Shah Applies to: SQL Server 2014 SP2, SQL Server 2016 SP1, SQL Server 2017 RTM In synchronous-commit mode AG nodes sometimes you...
View ArticleInstallation of SQL Server 2017 failing with ‘VS Shell installation has...
Dear all, Depending on which products were installed on the server beforehand, a SQL Server 2017 setup may fail with the following error : TITLE: Microsoft SQL Server 2017 Setup...
View ArticleUniqueifier considerations and error 666
This post is intended to shed some light around uniqueifiers and table design that rely on its usage. First a quick information about the subject. A uniqueifier (or uniquifier as reported by SQL Server...
View ArticleSQL Setup ToolSuite Introduction (3) – SQL Registry Viewer
You may want to know what registry keys will be added to system for a SQL server installation. If you use some registry snapshot tool to compare the window registries change of before and after the SQL...
View ArticleSQL Setup ToolSuite Introduction (2) – Product Browser
Oftentimes when I worked on a setup case I hope I have a simple tool to tell me the detailed installed product properties and patch information. In Windows control panel I can find all installed...
View ArticleSQL Setup ToolSuite Introduction (1) –FixMissingMSI
If you have encountered missing cached MSI/MSP issues during SQL server setup, you may have knew below article: How to restore the missing Windows Installer cache files and resolve problems that occur...
View ArticleChanges to hashing algorithm for self-signed certificate in SQL Server 2017
Starting with SQL Server 2005, a self-signed certificate is created automatically during the startup to be used for channel encryption. By default, credentials in the login packet that are transmitted...
View ArticleHow to safeguard SQL Server on Linux from OOM-Killer
On a Windows based server, when all the available memory including the page file is consumed, the server's performance becomes sluggish and out of memory errors are logged to the event logs. On Linux...
View ArticleNew season, New software, New servicing model
Greetings. It feels like a lot of change is in the air! Last Friday marked the Autumnal equinox. Depending upon which hemisphere you live in, the changes you might see with the new season might differ....
View ArticleSQL Nexus 6.0 is released to github
With codeplex shutting down, we have moved SQL Nexus to github with a new release (6.0). Now both Pssdiag/SQLDiag manager and SQL Nexus are on github. Where to get it As you navigate to SQL Nexus,...
View ArticleSQL Server : large RAM and DB Checkpointing
SQL Server : large RAM and DB Checkpointing Hi everyone, This post’s purpose is to establish a summary of the specific behaviors with relation to DB Checkpoint that may happen within SQL Server when...
View ArticleYou may see “out of user memory quota” message in errorlog when you use...
Recently we got an inquiry from a customer who received the following message in errorlog and wanted to know why. [INFO] HkDatabaseTryAcquireUserMemory(): Database ID: [7]. Out of user memory quota:...
View ArticleUnable to issue alter table for a memory optimized tables
Recently I assisted on a customer issue where customer wasn’t able to alter a memory optimized table with the following error Msg 41317, Level 16, State 3, Procedure ddl, Line 4 [Batch Start Line 35]A...
View ArticleMemory optimized table variable and cardinality estimate
In a previous blog, I talked about memory optimized table consumes memory until end of the batch. In this blog, I want to make you aware of cardinality estimate of memory optimized table as we have...
View ArticleUnable to restore a backup – Msg 3241
I worked on an interesting issue today where a user couldn’t restore a backup. Here is what this customer did: backed up a database from an on-premises server (2008 R2) copied the file to an Azure VM...
View Article