जवाबों:
यहाँ एक स्क्रिप्ट है जो मुझे डेटाबेस फ़ाइल पथ और पुनर्प्राप्ति मॉडल दिखाने के लिए बनाई गई है:
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]