+1  A: 

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.

Umesh
Thanks for your help Umesh.I will execute the query and i will update you.
srihari
+1  A: 

You can use this SQL:

EXECUTE sp_msforeachdb 'SELECT *, GETDATE() FROM [?].sys.database_files'
RedFilter
fixed a typo...
RedFilter
Hi Orban here i am not getting log file size of database at once.<br>I want like for example A,B are databases in the server then <br>I want total log size of A,Total log size of server B.Thank you very much for your reply.
srihari
Your question sepcified "each database", that is what the above does.
RedFilter
+1  A: 

try this

dbcc sqlperf(logspace)

Bye.

RRUZ
A: 

How to determine SQL Server database transaction log usage

try this :

DBCC SQLPERF(logspace)
anishmarokey
A: 

If you have rights...

SELECT SIZE/128.0, * FROM sys.master_files MF WHERE MF.type = 1
gbn