If it is SQL 2005 then select *
from sys.database_files
Look up either sysfiles or sys.database_files in the appropriate BOL, and you will find a flag that marks the file as a log file or a database file, and how to interprit the size field, which iirc is in 8k pages.
If it is SQL 2000 then select *
from sysfiles
If it is SQL 2005 then select *
from sys.database_files
Look up either sysfiles or sys.database_files in the appropriate BOL, and you will find a flag that marks the file as a log file or a database file, and how to interprit the size field, which iirc is in 8k pages.
Regards
David