top of page


How to Change Always On availability group mode
This topic describes how to change the availability mode of an availability replica in an Always On availability group in SQL Server by usin
rajendra gupta
Jan 18, 20221 min read
1,492 views
0 comments


T-SQL query to check SQL Server min server memory(MB) and max server memory(MB)
T-SQL query to check SQL Server min server memory(MB) and max server memory(MB)
rajendra gupta
Jan 13, 20221 min read
4,189 views
2 comments


PowerShell Script to restart SQL Services
Learn how to use PowerShell to restart a SQL service. Learn how to use PowerShell to restart an instance of SQL Server.
rajendra gupta
Jan 11, 20221 min read
2,894 views
0 comments


Enclose a list of values into single quotes from CSV for T-SQL query for SQL Server database
Enclose a list of values into single quotes from CSV for T-SQL query for SQL Server database
rajendra gupta
Jan 11, 20221 min read
37 views
0 comments


PowerShell Script to configure SQL Server static Port
Read the article to use a PowerShell Script for configuring SQL Server static Port
rajendra gupta
Jan 11, 20221 min read
1,704 views
0 comments


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
145 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
213 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,733 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


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
219 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
287 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
360 views
0 comments


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


Configure Max Degree of Parallelism (MAXDOP) for Azure SQL Database
Configure Max Degree of Parallelism (MAXDOP) for Azure SQL Database
rajendra gupta
Dec 30, 20211 min read
467 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


Increase or Decrease the number of error log files and their size in SQL Server
Increase the number of error log files and their size in SQL Server
rajendra gupta
Dec 30, 20211 min read
49 views
0 comments
bottom of page