﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / Need script that totals free disk space AND free space in files / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 02:25:04 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Need script that totals free disk space AND free space in files</title><link>http://www.sqlservercentral.com/Forums/Topic1400884-146-1.aspx</link><description>For free space monitoring and alert lepide's &amp; redgate having excellent tool in case you can check them [url]http://www.sqlservermanagement.net/[/url][url]http://www.red-gate.com/products/dba/sql-monitor/[/url]</description><pubDate>Tue, 22 Jan 2013 05:18:59 GMT</pubDate><dc:creator>itsmemegamind</dc:creator></item><item><title>RE: Need script that totals free disk space AND free space in files</title><link>http://www.sqlservercentral.com/Forums/Topic1400884-146-1.aspx</link><description>Here's one that is supposed to gather the mount point free space[url]http://www.powershellneedfulthings.com/?p=36[/url]</description><pubDate>Fri, 28 Dec 2012 20:24:41 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: Need script that totals free disk space AND free space in files</title><link>http://www.sqlservercentral.com/Forums/Topic1400884-146-1.aspx</link><description>Tried a few things including the suggested scripts from Steve.  Since our production environment uses mount points and because sp_databases returns null for larger databases, etc etc, I'll probably just use our Quest spotlight tool.  It will provide both disk free and free inside files, just not in one view.    We only have one data file, which needs work, that has a substantial amount of free space in the file -- substantial meaning over 100GB, so free space on disk is probably good enough as something to watch, set up alerts, and request more disk space as needed.Tried this powershell on our prod environment but it isn't reporting "inside" the mount points, just free space on the folder hosting the mount points.Get-WmiObject -ComputerName Remoteserver -Class Win32_LogicalDisk | Select -Property DeviceID, @{Name=’FreeSpaceMB’;Expression={$_.FreeSpace/1MB} } | Format-Table -AutoSize</description><pubDate>Fri, 28 Dec 2012 15:06:39 GMT</pubDate><dc:creator>Indianrock</dc:creator></item><item><title>RE: Need script that totals free disk space AND free space in files</title><link>http://www.sqlservercentral.com/Forums/Topic1400884-146-1.aspx</link><description>I think a powershell script would be your best friend for this kind of requirement.</description><pubDate>Fri, 28 Dec 2012 10:36:41 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: Need script that totals free disk space AND free space in files</title><link>http://www.sqlservercentral.com/Forums/Topic1400884-146-1.aspx</link><description>The problem is that you are asking for two fundamentally different things. I think you'd have to combine two scripts, perhaps though some union to get this.Here's one: [url]http://www.sqlservercentral.com/scripts/Maintenance+and+Management/30881/[/url]This might be the other.: [url]http://www.sqlservercentral.com/scripts/Database+Maintenance/94850/[/url]</description><pubDate>Fri, 28 Dec 2012 10:26:38 GMT</pubDate><dc:creator>Steve Jones - SSC Editor</dc:creator></item><item><title>Need script that totals free disk space AND free space in files</title><link>http://www.sqlservercentral.com/Forums/Topic1400884-146-1.aspx</link><description>We have a number of ways, including Quest Spotlight in our case, to get either free space on the drives holding the data files, or the free space within the files, but no easy way to get both output in one query.  It always includes manual editing of a spreadsheet to add up the two, and I think you really want both in addressing the need for more disk space -- for example you've created a new data file at 100GB and it starts out empty on a drive with 20GB free space.  Before asking for more space you need to look at both, not just the 20GB free on disk.</description><pubDate>Fri, 28 Dec 2012 06:06:50 GMT</pubDate><dc:creator>Indianrock</dc:creator></item></channel></rss>