top of page


T-SQL script to get user session count with client IP address
Download a T-SQL script for SQL Server that will aggregate the number of active sessions for each unique IP address. This is useful for dete
rajendra gupta
Jan 10, 20221 min read
148 views
0 comments


SQL Server Missing Index Script
If you ever find yourself in a situation where you're trying to troubleshoot performance on a SQL Server, then it's a good idea to look at
rajendra gupta
Jan 10, 20221 min read
214 views
0 comments

How to take SQL SERVER backup to Azure Blob Storage
How to take SQL SERVER backup to Azure Blob Storage. This is a guide for SQL Server DBA to store SQL SERVER backup in Azure.
rajendra gupta
Jan 8, 20221 min read
469 views
0 comments


SQL Server script to change SQL Server Authentication Mode
A friend recently asked me how to change the authentication mode of SQL instances. This blog gives steps to change SQL Server authentication
rajendra gupta
Jan 8, 20221 min read
54 views
0 comments


Script SQL Database Permissions for database refresh
Script SQL Database Permissions for database refresh
rajendra gupta
Jan 7, 20221 min read
1,749 views
0 comments


SQL Server Database Mirroring Login Attempt Failed with Error ‘Connection Handshake Failed’
In SQL Server Always On Availability Group environment endpoint connection issue is a common problem and it needs to be resolved by...
rajendra gupta
Jan 7, 20221 min read
9,206 views
0 comments


T-SQL Script to find out Nth highest salary
It is a standard SQL interview question where the interviewer asks to write a query that finds Nth highest salary from the employee table. H
rajendra gupta
Jan 7, 20221 min read
53 views
0 comments


Get a list of installed SQL Server Components with SQL Server Discovery Tool
Get a list of installed SQL Server Components with SQL Server Discovery Tool
rajendra gupta
Jan 5, 20221 min read
1,673 views
0 comments


T-SQL statement to Enable and Disable XP_CMDSHELL using SP_CONFIGURE in SQL Server
This article outlines the steps to Enable and Disable XP_CMDSHELL using the SP_CONFIGURE system stored procedure.
rajendra gupta
Jan 5, 20221 min read
220 views
0 comments


Dynamic SQL to move SQL Server TempDB Data and Log Files to different directories
Dynamic SQL to move SQL Server TempDB Data and Log Files to different directories
rajendra gupta
Jan 5, 20222 min read
98 views
0 comments


move SQL Server TempDB database files to a different directory using Dynamic SQL
This article will explain the steps to change the SQL Server Tempdb database data and log file physical location.
rajendra gupta
Jan 5, 20223 min read
292 views
0 comments


Drop Database in SQL Server
Drop Database in SQL Server
rajendra gupta
Jan 5, 20221 min read
30 views
0 comments


Disable and Enable SQL Server Indexes
This article explains how to disable an Index in SQL Server.
rajendra gupta
Jan 5, 20222 min read
362 views
0 comments


T-SQL Script to generate Six Digit One Time Password (OTP)
This blog will give a T-SQL script o create and use Six Digit One Time Password using the SQL Server RAND function
rajendra gupta
Jan 5, 20221 min read
175 views
1 comment


Steps to change the default SQL Server backup directory
This article provides steps to change the default SQL Server backup directory.
rajendra gupta
Jan 4, 20221 min read
326 views
0 comments


Learn SQL SELECT TOP statement
This SQL tutorial will understand how to use the SQL SELECT TOP queries using various examples.
rajendra gupta
Jan 4, 20222 min read
38 views
0 comments


"Invalid Object Name" Error in SSMS for recently created objects
Suppose you created a new table in SQL Server or Azure SQL Database, and the query editor shows you the error message "Invalid Object Name"
rajendra gupta
Jan 4, 20221 min read
237 views
0 comments


How to stop logging successful backup messages in SQL Server error logs
This article guides you to stop logging successful backup messages in SQL Server Error Logs.
rajendra gupta
Jan 4, 20222 min read
169 views
0 comments


Who, When, and Why restarted my SQL Server?
Who, When, and Why restarted my SQL Server?
rajendra gupta
Dec 31, 20211 min read
570 views
0 comments

T-SQL script to find out SQL Server Logs directory
T-SQL script to find out SQL Server Logs directory
rajendra gupta
Dec 30, 20211 min read
173 views
0 comments
bottom of page