I was recently called an interesting scenario by my client. Let us learn today Correcting Space Allocation with DBCC UPDATEUSAGE.
SQL SERVER – Using CASE Expression in Default Value
It is not possible to use CASE Expression in Default Values when you add a new column. I hope this answers the question. However, there is a workaround.
SQL SERVER – Find Instance Name for Availability Group Listener
How to Find Instance Name for Availability Group Listener? I was recently asked this by DBA at Comprehensive Database Performance Health Check.
SQL SERVER – Applying Query Hints to Views
I totally agree that it is not possible to apply query hints to views inside the view. It will give you an error. However, there is a workaround.
SQL SERVER – Altering Column – From NULL to NOT NULL
Let us see a very simple script today. It is about Altering Column – From NULL to NOT NULL. Comprehensive Database Performance Health Check
SQL SERVER – Quick Look at Suspected Pages
Well, let us take a Quick Look at Suspected Pages which contains details about corrupted pages. They have been running DBCC commands regularly.
SQL SERVER – Making Table Read Only via FileGroup
Well, the primary reason, we make the table read-only is for making table read only. Earlier I wrote the blog post Making Filegroup Read Only.