Get Database Size Stats
Please see below query, which will help you to get stats for Capacity planning such as Database Name - Name of Database Creation Date - When database was created Space Allocated - How much space is currently allocated Growth Still Available - How much space is available in Database to grow Space Used - How much is currently been used Data Size - Size of data file LogSize - Size of Log file and so on Query used to get above stats, you can use below SQL Query /******************************************************************************** NAME: GetDatabaseSizeStats PURPOSE: Displays all known database sizes and space allocations. ********************************************************************************/ DECLARE @sysdb BIT -- 1 for include sysdatabases ,0 for Not include sysdatabases DECLARE @order int -- set the order of columns DECLARE @orderby bit -- 0 for asc, 1 for...