Duplicate of: http://stackoverflow.com/questions/1496136/how-to-find-out-size-of-the-individual-databases-in-the-sql-server-2005
how to find out log size of each of the database in sql server 2005?
Duplicate of: http://stackoverflow.com/questions/1496136/how-to-find-out-size-of-the-individual-databases-in-the-sql-server-2005
how to find out log size of each of the database in sql server 2005?
In SQL management studio , goto object explorer, right click database, goto "properties" , select "Files" . These you can see one "Initial size" column which will be the size of your DB. you will get both Data and Log file size over here.
You can use this SQL:
EXECUTE sp_msforeachdb 'SELECT *, GETDATE() FROM [?].sys.database_files'
If you have rights...
SELECT SIZE/128.0, * FROM sys.master_files MF WHERE MF.type = 1