Jawaban:
Berikut ini skrip yang saya buat untuk menunjukkan jalur file database dan model pemulihan:
SELECT
A.recovery_model_desc AS [Recovery Model],
A.name AS [Database Name],
C.physical_name AS [Filename],
CAST(C.size * 8 / 1024.00 AS DECIMAL(10,2)) AS [Size in MB],
C.state_desc AS [Database State]
FROM sys.databases A
INNER JOIN sys.master_files C ON A.database_id = C.database_id
ORDER BY [Recovery Model], [Database Name], [Filename]