Mehdi Lorvand (mlorvand)

mlorvand

User data from Github https://github.com/mlorvand

Company:Vatanzarin

Location:Tehran/Iran

GitHub:@mlorvand

Mehdi Lorvand's repositories

KillOtherSessions

A powerful and safe T-SQL stored procedure that **automatically kills all active SPIDs** connected to a specific database — except your current session. Perfect for **maintenance, restore operations, or exclusive access** requirements.

Language:TSQLStargazers:1Issues:0Issues:0

sp_usp_ListFiles

A lightweight stored procedure for monitoring **database file sizes (MDF, LDF)** in any SQL Server database. It dynamically queries the target database and shows total, used, and max size of each file.

Language:TSQLStargazers:0Issues:0Issues:0

AG_HealthCheck

A query for overview all primary and replica servers in an AG

Language:TSQLStargazers:0Issues:0Issues:0

FilegroupSpaceUsed

It shows each file’s logical name, path, total size, and used space (in MB)

Language:TSQLStargazers:0Issues:0Issues:0

FreeSpaceDrive

This query show your server all drives status with capacity counter and percentage value

Stargazers:1Issues:0Issues:0

CollationDetails

This SQL script provides a complete overview of collation settings for all text-based columns (char, varchar, nchar, nvarchar, etc.) across user tables in a database.

Language:TSQLStargazers:0Issues:0Issues:0

FileGrowth

SQL Server script to display the current status of database files, including auto growth configuration, growth type (percent or KB), maximum size, and physical file location.

Language:TSQLStargazers:0Issues:0Issues:0
Language:TSQLStargazers:1Issues:0Issues:0

sql-index-analyzer

Script for analyzing SQL Server index structure and filegroup usage

Stargazers:1Issues:0Issues:0