TSQL to compare log file to data file in a database
SELECT @@servername as ServerName, db_name(database_id) as DatabaseName, Name as LogiCalFileName,
Physical_Name [Physical file]
, (size*8)/1024 [Size_MB]
FROM
sys.master_files
Comments
Anonymous comments are disabled
About SQL Master
**__________________________________**
SQL Server MVP, Sr. DBA & industry expert.
-
Knowledge is of two kinds. We know a subject ourselves or we know where we can find information on it. It is also a power and you will gain by sharing it.