Created
July 30, 2013 04:41
-
-
Save johndacosta/6110295 to your computer and use it in GitHub Desktop.
Get files sizes for sql server. intentionally using old table due to desire to support sql 2000
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- http://msdn.microsoft.com/en-us/library/ms181338.aspx | |
select | |
@@servername as ServerName, db_name(dbid) as DatabaseName,dbid,fileid,groupid, size, size * 8 sizeKB, maxsize, growth, status, name, filename | |
from master.dbo.sysaltfiles |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment