|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 11:25 PM
Points: 946,
Visits: 1,739
|
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, February 12, 2013 8:15 PM
Points: 12,
Visits: 224
|
|
| Hi, we use mountpoints in our clustered SQL instance. I think it would be great to include this into your scripts
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 9:21 AM
Points: 964,
Visits: 632
|
|
I've updated the Powershell portion of this routine to collect the total disk free space amount for the drives SQL Server uses. this also requires adding one column to the DatabaseDiskStats table. Details can be found at my blog: http://shaunjstuart.com/archive/2010/11/drive-space-monitoring-gets-an-update-update This should allow you to have better insight into your disk space usage.
Sorry, still no mount point support - I don't have a configuration I can use for testing that.
Shaun
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 9:21 AM
Points: 964,
Visits: 632
|
|
| I just wanted to let people know I found a bug in the stored procedure portion of this that may result in the @@SERVERNAME system variable being set to NULL after a restart on the machine this routine is executed on. Details and a fix are at http://shaunjstuart.com/archive/2011/01/drive-space-monitoring-gets-an-update-bug-fix. Not sure if this is due to a bug in the sp_dropserver system stored procedure or if it is by design.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, May 07, 2012 8:20 PM
Points: 3,
Visits: 88
|
|
I believe there's a bug with the sproc, where if the @servername starts with a number, e.g. "1SQLServer", the following error would be thrown.
Msg 102, Level 15, State 1, Line 13 Incorrect syntax near '1'. Msg 102, Level 15, State 1, Line 13 Incorrect syntax near '1'.
(0 row(s) affected)
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 9:21 AM
Points: 964,
Visits: 632
|
|
| Eugene - I am unable to duplicate this issue. I created a VM named 1SQLSVR, installed SQL 2008 R2 on it, and loaded my routines. Everything worked correctly.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, May 07, 2012 8:20 PM
Points: 3,
Visits: 88
|
|
That's odd, it worked correctly for me with servers without numbers in front, but not if there were numbers. Could you send me a link to your routines? Maybe I'm using a different version of your sproc.
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 9:21 AM
Points: 964,
Visits: 632
|
|
Sure. The latest version can always be found here: http://shaunjstuart.com/archive/2011/07/drive-space-monitoring-page/
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, May 07, 2012 8:20 PM
Points: 3,
Visits: 88
|
|
Thanks Shaun! The latest script works without error.
How do you normally display the data in a report? I'm currently running the sproc without using the powershell script.
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 9:21 AM
Points: 964,
Visits: 632
|
|
| I created an SSRS report that reads the data table and makes graphs off of that.
|
|
|
|