R S R KARAN SQL-ORACLE-DBA HANDS ON
CLOCK
free counter
free trial web hosting
Wednesday, 21 August 2013
Find database file size
SELECT DB_NAME(dbid) AS DatabaseName,
Name AS LogicalFileName,
CASE WHEN GroupID=1 THEN 'Data' ELSE 'Log' END AS FileType,
FileName AS FilePath, size AS TotalPage,
(Size*8192E)/1048576 AS FileSizeInMB
FROM master..SysAltFiles
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment