|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, June 13, 2013 3:50 AM
Points: 969,
Visits: 652
|
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Friday, February 15, 2013 7:29 AM
Points: 509,
Visits: 718
|
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 8:13 PM
Points: 1,053,
Visits: 2,799
|
|
| not sure why you used dbo.sysfiles i/o sys.database_files.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Friday, June 14, 2013 6:49 AM
Points: 90,
Visits: 131
|
|
You can use this free tool http://www.sqldbtools.com/Tools.aspx?ProductId=3
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, March 27, 2012 11:08 AM
Points: 16,
Visits: 134
|
|
| Very useful script. I have been doing some sp_spaceused manually to collect this data until I could write this, thanks for sharing a workable solution. I did run this on 2008 and 2005 version 9.00.4035.00 without any modification. Thanks again.
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, June 13, 2013 3:50 AM
Points: 969,
Visits: 652
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, April 11, 2013 9:12 AM
Points: 2,
Visits: 52
|
|
Getting this error when I run on SQL Server 2008:
Msg 156, Level 15, State 1, Line 24 Incorrect syntax near the keyword 'END'. Msg 102, Level 15, State 1, Line 37 Incorrect syntax near 'DECLARE EXEC sp_MSforeachdb @pages BIGINT -- Working variable for size calc. ,@dbname SYSNAME ,@dbsize BIGINT ,@logs'.
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, June 13, 2013 3:50 AM
Points: 969,
Visits: 652
|
|
|
|
|