SQL SERVER – How to Apply Patch in AlwaysOn Availability Group Configuration?
This is one of the common question which is asked via emails to me. “How to apply the patch in AlwaysOn Availability Group configuration?” OR “What are the steps we should do and things to take care...
View ArticleSQL SERVER – SQL Browser not Starting. Error – The SQL Configuration for SQL...
Today’s blog is originated from a blog interaction. After hardening a server, my friend was not able to start SQL Browser service. When we try to start from services, we get below standard error, which...
View ArticleSQL SERVER – Installation Error – The Specified Driver is Invalid
In this blog post we are going to learn about Installation Error – The Specified Driver is Invalid.SYMPTOMSSQL Server installation failed with errors in setup logs. Summary.txt shows...
View ArticleSQL SERVER – Queries are in KILLED/ROLLBACK State with Wait...
There are many wait types in SQL Server and not all of them are documented. Long ago I wrote blog on PREEMPTIVE and Non-PREEMPTIVE waits. SQL SERVER – PREEMPTIVE and Non-PREEMPTIVE – Wait Type – Day 19...
View ArticleKPIs For DBAs to Show Their CIOs
It is perfectly valid for a DBA (or their manager) to assign KPIs to the servers and databases they administer. KPIs are unique for every shop, and for every role. The post KPIs For DBAs to Show Their...
View ArticleSQL SERVER – FIX : Msg 35295, Level 16 – Log Backup For Database ‘DBName’ on...
Once, while doing a load testing with my client, I was shown below error while taking log backups on secondary replica.Msg 35295, Level 16, State 1, Line 1 Log backup for database “MyAppDB” on a...
View ArticleSQL SERVER – Script Upgrade – Server Principal...
One should be very careful while working with system objects in SQL Server. Below is one of the situation where some permissions were given on system objects which was causing SQL startup failure. I...
View ArticleSQL SERVER – PRINTing Status Using RAISERROR With NOWAIT Option
In this blog post we are going to learn about PRINTing Status Using RAISERROR With NOWAIT Option.The Problem There are many situations where you want to know which line of code is completed in the...
View ArticleSQL SERVER – FIX : Error Msg 8672 – The MERGE Statement Attempted to UPDATE...
While I have been blogging about SQL Server for a long time, I still believe that there is still a lot of error which are not discovered by me. It is always fun to see new error and find a fix for the...
View ArticleSQL SERVER – Errorlog The Server was Unable to Initialize Encryption Because...
One of my client was trying to start SQL Service and it was failing. I asked to hare ERRORLOG so that we will get some idea about the cause. Here is the information from ERRORLOG file.2017-01-31...
View ArticleSQL SERVER – Maintenance Plan – Could not load type...
One of my client was unable to modify the maintenance plan using SSMS. When we did various tests, we found that existing maintenance plans could execute and work. We tried creating a new maintenance...
View ArticleSQL SERVER – Availability Group Missing or Deleted Automatically?
As a part of my passion, I try to help people in fixing simple issues and explain the behavior by looking at logs. Here is an email from my friend about Availability Group Missing or Deleted...
View ArticleSQL SERVER – Microsoft.SqlServer.Management.Sdk. Sfc.EnumeratorException:...
If you work with a product for a long time, you would start loving it. I have worked with many other RDBMS, but my love to SQL Server will never die. The amount of information available in logs is very...
View ArticleSQL SERVER – DBCC SHRINKFILE: Page 1:26423878 Could not be Moved Because it...
This blog is an outcome of an email communication with my client. The issue was that they were having big tempdb files. They had multiple files and of uneven size. As soon as they restart SQL, the...
View ArticleTEMP is A Four Letter Word
It’s not uncommon to observe rampant over reliance of database application code on TEMP tables, most often as a SQL language programming crutch. I have a theory as to why. Programmers are chiefly...
View ArticleSQL SERVER – How to get historical deadlock Information from System Health...
Let me start off by asking a simple question. How many of you have seen this error about historical deadlock information earlier?Msg 1205, Level 13, State 45, Line 4 Transaction (Process ID 52) was...
View ArticleSQL SERVER – Query to Get the List of Logins Having System Admin (sysadmin)...
Though the script sounded simple to me, but I found that there are lots of incorrect scripts available on the internet. Here is the one of the script I found to find out the details of the system...
View ArticleSQL SERVER – Why Cluster Network is Unavailable in Failover Cluster Manager?
It’s always a good experience to visit customer sites and talk to people. Sometimes I get to see things outside SQL world as well. There is a lot to learn and I believe that I can do that by sharing...
View ArticleSQL SERVER – The Log Scan Number Passed to Log Scan in Database ‘master’ is...
If you have landed on this blog by searching below error, then I must tell you that your SQL Server service is not getting started. Let us learn in this blog how to fix The Log Scan Number Passed to...
View ArticleSQL SERVER – Fix – Error 15240, Severity: 16, State: 2 – Cannot write into file
I always keep playing with my virtual machine which has SQL Server installed. Recently I was trying to apply the patch of SQL Server and I was surprised to see that SQL Server was not getting started...
View ArticleSQL SERVER – Unable to Apply Security Patch – The setup has encountered an...
One of my clients reported that he is trying to apply security patch for SQL Server clustered instance and it was failing. Since this is SQL 2005 instance, there is no official support available from...
View ArticleSQL SERVER – AlwaysOn AG (Availability Group) and TDE Error – Please Create a...
Along with performance consulting, sometimes I also get requests from a few clients to look at the AlwaysOn availability group related problems.ENVIORNMENT:Three node AlwaysOn availability group with...
View ArticleSQL SERVER – Understanding JSON Use is Case-Sensitive
The things I get to learn from my daughter is amazing. I think all of us need to constantly explore without any prejudice and set biases. Whenever I get a new toy for some occasion, I see there is at...
View ArticleSQL SERVER – Script level upgrade for database ‘master’ failed – There is...
SQL Server troubleshooting topics seem to be the most searched for in this blog. In continuation to this, blog for today is also inspired with one such error message. Some time back I have written...
View ArticleSQL Server – When to Use a Sledgehammer and When to use a Screwdriver
Some organizations use SQL Server Always On Availability Groups to help boost performance of applications where the users are geographically dispersed. They accomplish this by placing the secondary...
View ArticleJoin Me at SQL Konferenz 2017
I will be presenting at SQL Konferenz in Darmstadt, Germany next month. If you are in, or near, Darmstadt in February I hope you take the time to join us at SQL Konferenz!The post Join Me at SQL...
View ArticleSQL SERVER – Using dm_db_stats_properties With InMemory OLTP Tables
The whole concept of InMemory OLTP has been around for a while and still there are areas that I try to go back to learn every single time. If you are new to InMemory OLTP, I would highly recommend...
View ArticleSQL SERVER – SQL Installation fails with error code 0x851A001A – Wait on the...
One of my client was trying to deploy his product on their test servers. They found that the SQL Server installation was failing with below error. Let us learn about error Wait on the Database Engine...
View ArticleSQL SERVER – Script level upgrade for database master failed – Error: 4860,...
Of late, I have been contacted by few clients who have been facing issues with SQL startup failure after applying patch to SQL Server instance. This blog is an outcome of one such assistance provided....
View ArticleSQL SERVER – Understanding JSON NULL Value Using STRICT Keyword
Playing around with the new capability of SQL Server 2016 has been a fun journey. Even after a year, the discovery keeps happening every single day that I work with it. When I wrote the post around...
View ArticleSQL SERVER – Error Msg 10778, Level 16 with InMemory OLTP
SQL Server 2016 brought several innovations. One of the most anticipated feature additions was the ability to define foreign keys with InMemory tables. I wrote about this feature earlier on blog at:...
View ArticleSQL Server Compatibility Levels
Have you ever wondered what versions of SQL Server related to the compatibility levels? This article will show you the levels and also how to change existing databases to different SQL releases.This is...
View ArticleSQL SERVER – Error: 566, Severity: 21 – An Error Occurred While Writing an...
Have you ever been in a situation where SQL Server shuts down by itself? It sounds strange but I met across a gentleman in flight who reported this issue to me. Since I was curious to know the cause,...
View ArticleSQL SERVER – Database Mirroring Connection Error 4 – An Error Occurred While...
I was trying to set up database mirroring in my freshly created Azure Virtual Machines and encountered an error. The error was talking about the connectivity problem, but it was something else. Let us...
View ArticleSQL: Different ways to generate sequence
There was a question from the op regarding adding a new column to a query output by generating the cyclic sequence numbers from 1 to 3.Select A =identity(int,1,1),B,C from...
View ArticleSQL SERVER – The header for file Path is not a valid database file header....
If you are coming to this page by searching, then I am sure that you are in big trouble. I have come across this error and my SQL Server was not getting started. When I looked into ERRORLOG, I found...
View ArticleSQL SERVER Management Studio – Exception of type...
I was trying to help my client in generating a report large data set. After spending some time and understanding the schema, I could provide them the query to get the results. Now, he wanted to save...
View ArticleSQL SERVER – UpdateHADRResource – Failed to version-copy file – Exception...
While applying patches on SQL server standalone instance, in the cluster, it failed with error as below in Summary.txt file. Let us learn about how to fix Exception data is:...
View ArticleSQL SERVER – Migrating AlwaysOn Availability Group to New AD Domain
As a part of my independent consulting, I also provide a high level overview of the migration strategy. As a part of this engagement, my client wanted me to provide steps to move AlwaysOn availability...
View ArticleSQL SERVER – FIX: Error 19456: None of the IP Addresses Configured for the...
Recently, while deploying a hybrid AlwaysOn availability group for a client, I faced this error. Since it was something I was not able to find many hits on internet search, I thought of sharing this...
View ArticleSQL SERVER – FIX: Msg 7356, Level 16 – The OLE DB provider “ASEOLEDB” for...
In SQL Server, we can create linked server to many other RDBMS. The providers to connect would generally publish by destination RBMS. In this client scenario, they were dealing with linked server to...
View ArticleSQL SERVER – FIX: Msg 15281- SQL Server Blocked Access to Procedure...
One of my blog readers pinged me on Skype and asked a simple question. I always thought I had a blog written about this error, but I was wrong. So, this blog is the outcome of a short interaction with...
View ArticleSQL SERVER – Cannot open backup device. Operating system error 1326 (Logon...
There might be various reasons for above error, but this case is very specific to a situation where SQL Server was installed on a machine which was in Workgroup whereas the backup destination was the...
View ArticleSQL SERVER – Fix: Error 946, Severity: 14 – Cannot open database ‘DB’ version...
I was consulting a client for migration from SQL 2014 to SQL 2016. They were using methodology discussed in books online here. https://msdn.microsoft.com/en-us/library/dn178483.aspx (Upgrading AlwaysOn...
View ArticleSQL SERVER – Error 17113, Severity: 16 – Error Occurred While Opening File...
While playing with my SQL Server startup parameter, I made some mistakes and came to a situation where SQL Server was not getting started. In this blog post, let us learn about error 17113.Whenever you...
View ArticleSQL SERVER – Improve Application Performance on Cloud While Reducing...
It is very common for people to move databases now a days to the cloud. The very first question I often hear from them is – How to Improve Application Performance on Cloud While Reducing Bandwidth...
View ArticleSQL SERVER – Fix: Error: 1934, Level 16, INSERT or UPDATE Failed Because the...
A very old client of mine yesterday pinged me with this question about error related to QUOTED_IDENTIFIER.“Pinal,When I run my query it works just fine in SSMS but when I run it via SQL Server Agent...
View ArticleSQL SERVER – Event ID 26 – Your SQL Server Installation is Either Corrupt or...
While trying to start SQL Service for a named instance, I got an error message related to event id 26 – Your SQL Server Installation is Either Corrupt or has Been Tampered With (Error Getting Instance...
View ArticleSQL SERVER – Maintenance Plan failing with 0x80131904 – A network-related or...
One of my clients contacted me and informed that after patching of SQL Server, they noticed that their maintenance plan were failing. I asked them to share the complete error message about the...
View ArticleSQL SERVER – Add Failover Cluster Node Fails With Error – This SQL Server...
In this blog post we will discover how to fix an Add Failover Cluster Node Fails With Error. If you have installed SQL Server cluster, then it would be easy for you to remember that it’s a two-step...
View Article