Introduction to Indexed Views in SQL Server
Introduction Usually, when a view is created in the SQL Server database, it is just a virtual table (not stored on disk) that might fetch results from one or more underlying physical tables (stored on disk). Views are mainly created to maintain securit …

Free Fundamentals of Index Tuning Week: Part 1, Indexing for the WHERE Clause
I’m teaching my Mastering Index Tuning pre-con at SQLBits and SQL Saturday Iceland, and part of the prerequisites is that you’re already familiar with my How to Think Like the Engine class and my Fundamentals of Index Tuning class. I was go …

SQL SERVER – Unable to Allocate Enough Memory to Start ‘SQL OS Boot’. Reduce Non-essential Memory Load or Increase System Memory
One of my clients, contacted me to fix one of the errors which they received while starting SQL Service. In this blog, I would share my learning about error “Unable to allocate enough memory to start ‘SQL OS Boot’. Reduce non-essentia …
Deployment Suite for Oracle: What’s New?
The post Deployment Suite for Oracle: What’s New? appeared first on SQLServerCentral.
Saving Game Data with Unity
The post Saving Game Data with Unity appeared first on SQLServerCentral.
Monitor for errors in your SSAS, SSRS, SSIS, Agent and Full-Text services
As a database administrator, you’re often required to maintain other components apart from SQL Server, from installation to performance tuning and, hopefully not, troubleshooting. Most probably you’re already monitoring SQL Server Error Log, but the ot …

How to Forecast the Size of Restore of Backup in SQL Server? – Interview Question of the Week #265
Question: How to Forecast the Size of Restore of Backup in SQL Server?Answer: Recently, I had discussed this in consulting engagement: Comprehensive Database Performance Health Check. We had a very unique scenario where we had a huge backup file of the …
In Praise of User-Defined Datatypes
User-defined datatype aliases assist in allowing clear readable code. Without them, you can still be consistent in your naming of a column, parameter or variable as ‘price’, but if you use, for example, a datatype called ‘price’, then your naming can b …

SQL SERVER – Always On Error: This Database is Encrypted by Database Master Key, You Need to Provide Valid Password When Adding it to the Availability Group
As a part of my work, I also provide consultancy to fix the issues. It has three advantages, first one is that I earn money and the second one, more important one, is that I get to troubleshoot and learn, and the third one is I share it further via my …
SQL Server Machine Learning 2019: Working with Security Changes
I have a confession to make. Why, in my last article about shortest_path in SQL Server 2019, have I used Gephi in order to illustrate the relationships, instead of using a script in R for the same purpose and demonstrate Machine Learning Services as we …

SQL SERVER – Always On Listener Not Coming Online – Failed to Create New NBT Interface, Status 1450
During the recent consulting engagement Comprehensive Database Performance Health Check with my client, one of the DBA was busy with Always On deployment. He asked me if I can help him with some pointers. Since I was able to fix it and learned som …
Azure Data Factory Triggers
Triggers in ADF are used to run pipelines automatically either on a wall-clock schedule or at a periodic time interval. There is enough documentation on these two types of triggers with examples. But, for someone like me coming from an SSIS background, …
Why you Should Always Specify Whether a Column Accepts Nulls
The post Why you Should Always Specify Whether a Column Accepts Nulls appeared first on SQLServerCentral.
Updated First Responder Kit and Consultant Toolkit for February 2020
We spent Valentine’s Day removing the bugs from your chocolates. You’re welcome. To get the new version: Download the updated FirstResponderKit.zip Azure Data Studio users with the First Responder Kit extension: ctrl/command+shift+p, First …

MySQL – Get Last Query Cost Using SHOW STATUS LIKE ‘Last_Query_Cost’
During the recent webcast I did for Idera, I had the pleasure of showing quite a lot of new tricks and tips. One of the most appreciated tips was about how to get Last Query Cost in MySQL using the command SHOW STATUS LIKE ‘Last_Query_Cost’ …