Stored Procedure to Get Database Tables Information
As SQL Server DBAs, we always take care of one of the most important things for the business, the...
Stored Procedure to Get Indexes Status in All Databases
As SQL Server DBAs, we’ve heard that index structures can dramatically improve the performance of any given query (or set of queries)....
WhoIsActive Runner
Nowadays, within the SQL Server DBA community, it is extremely likely that we use, or at the very least have heard of, the famous stored...
How to Get SQL Server Statistics Information Using System Statistical Functions
Often, we need to gather system statistics regarding running SQL Server Instances, such as the...
SQL Server RAISERROR Statement with Simple Examples
The SQL RAISERROR statement is used to send a custom message to the client application. It also can be used to debug the application and...
Stored Procedure to Delete Duplicate Records in SQL Table
Sometimes during our run as DBAs, we come up across at least one table that is loaded with duplicate records. Even if the table has a...
The Stored Procedure to Get the Instance Settings
SQL Server instances house databases containing the data for the backend stack of a business model,...
Dynamic SQL Execution in SQL Server
Dynamic SQL is a statement constructed and executed at runtime, usually containing dynamically generated SQL string parts, input...
A Dedicated Stored Procedure to Get the Latest Database Backups Status
Any SQL Server DBA (of course, this applies to all platforms) will agree that database backups are the most essential things for data...
Renaming Indexes with sp_rename Procedure
Not so long ago, I was working on a project where we needed to change the data type of a table. The...