Blog Post: How to Get Status of Running Backup and Restore in SQL Server? –...
Question: How to Get Status of Running Backup and Restore in SQL Server? Answer: One of the reasons I started my blog long ago was to have a repository of scripts which can be very useful by DBA...
View ArticleBlog Post: SQL SERVER – FIX : Error Msg 8672 – The MERGE Statement Attempted...
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 ArticleBlog Post: #0402–SQL Server 2016 – KB3207512 fails–Msg 17054 – Unable to...
SQL Server 2016 installations may run into some issues with patching and configuration. This post provides pointers on avoiding these.
View ArticleBlog Post: Extreme situations require extreme commands
The title is adapted from a child-hood movie of mine and is my daily (database-related) WTF moment and it is my entry for this month’s T-SQL Tuesday found:...
View ArticleBlog Post: SQL SERVER – Errorlog The Server was Unable to Initialize...
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 ArticleBlog Post: SQL 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 ArticleBlog Post: Corrupt Database – I need that data now!
My database is in the recovery pending state and I want to get in and extract the data out into a new database, I have NO BACKUPS available so some data (even if it is dodgy) is better than nothing. …...
View ArticleBlog Post: PolyBase use cases clarified
I previously talked about PolyBase and its enhancements (see PASS Summit Announcements: PolyBase enhancements ). There is some confusion on PolyBase use cases as they are different depending on...
View ArticleBlog Post: Monday Coffee 2017-03-13
Less than a week to go until SQLSaturday Iceland now, it’s going to be a busy couple of months for me but am looking forward to it. I’ll get my slides and demos uploaded here at some point. I’ve been...
View ArticleBlog Post: SQL 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 ArticleBlog Post: Microsoft Brings New Capabilities to HDInsight and DocumentDB
Microsoft is headed to San Jose this week where they will be announcing new features for HDInsight and DocumentDB at Strata Hadoop + World. Additionally, the company is also announcing a new preview...
View ArticleBlog Post: SQL SERVER – Microsoft.SqlServer.Management.Sdk....
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 ArticleBlog Post: How to Find How Many Rows Each Query Returned Along with Execution...
Question: How to Find How Many Rows Each Query Returned Along with Execution Plan? Answer: During my performance tuning consultancy engagement, this is one of the most asked questions. Everyone wants...
View ArticleBlog Post: SQL SERVER – sp_readrequest – Long Running Process
Just another day while doing performance tuning engagement , Senior DBA of the organization and I both noticed that one of the SP sp_readrequest is continuously listed as long running SP. Well, the...
View ArticleBlog Post: #0403 – SQL Server – CAST/CONVERT to string – Pad zeroes or spaces...
Padding zeroes to an integer is often required during data migrations and integrations. Here is the approach I use in such data conversions.
View ArticleBlog Post: TDE: Looking inside your database and backups
TDE (Transparent Data Encryption) encrypts the data files at rest but don’t forget that it also encrypts your backup file too. I fancied looking inside the MDF and a backup of my database before...
View ArticleBlog Post: SQL SERVER – DBCC SHRINKFILE: Page 1:26423878 Could not be Moved...
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 ArticleBlog Post: My path from a junior to a senior DBA
A non-technical post but something I have been asked about few times so I thought that I would put pen to paper and tell you about my journey on becoming a senior DBA. You might find it fun to read....
View ArticleBlog Post: Partitioned Tables and ColumnStore
ColumnStore indexes are all the rage with data warehouses. They’re fast, they’re new(ish) and they solve all sorts of problems when dealing with massive amounts of data. However they can cause some...
View ArticleBlog Post: Should I build a 1×6 VM or a 6×1 VM?
This sort of question comes up a lot. And there’s a lot of it-depends built into the answer, so I’ll try and break this down a little bit for you. Be warned, we’re going to be talking about NUMA and...
View Article