SQL Script to find the databases size
Sometimes we need to find out the size of the database on a server. Below SQL Scripts can be used to find out the size of all the databases created on the server. ;WITH DBSize (SqlServerInstanceName, DatabaseName, DatabaseSize, DBLogSize, TotalDBSize) AS ( SELECT @@SERVERNAME SqlServerInstanceName, db.name AS … Read more