How to get the data and log file sizes for a specific database in SQL Server?
Here are the queries I’m using to fetch the data and log file sizes separately for a specific database. These T-SQL queries return file sizes, used space and free space using DMVs.