<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: SQL Server: Use xp_fixeddrives Procedure to monitor the Disk Space of Server	</title>
	<atom:link href="https://www.dbrnd.com/2017/03/sql-server-use-xp_fixeddrives-procedure-to-monitor-the-disk-space-of-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com/2017/03/sql-server-use-xp_fixeddrives-procedure-to-monitor-the-disk-space-of-server/</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Thu, 23 Mar 2017 18:23:04 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>
		By: Anvesh Patel		</title>
		<link>https://www.dbrnd.com/2017/03/sql-server-use-xp_fixeddrives-procedure-to-monitor-the-disk-space-of-server/#comment-5566</link>

		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 23 Mar 2017 18:23:04 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4723#comment-5566</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.dbrnd.com/2017/03/sql-server-use-xp_fixeddrives-procedure-to-monitor-the-disk-space-of-server/#comment-5560&quot;&gt;Bruce&lt;/a&gt;.

Hey Bruce, thanks for adding this, yes only problem with sysadmin level permission....]]></description>
			<content:encoded><![CDATA[<p>Hey Bruce, thanks for adding this, yes only problem with sysadmin level permission&#8230;.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Bruce		</title>
		<link>https://www.dbrnd.com/2017/03/sql-server-use-xp_fixeddrives-procedure-to-monitor-the-disk-space-of-server/#comment-5564</link>

		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Wed, 22 Mar 2017 23:34:28 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4723#comment-5564</guid>

					<description><![CDATA[An alternate way to leverage this for automation, is to use it within a SQL Agent job. Depending on how you have setup security on your SQL Agent process, it likely runs as a SysAdmin equivalent.

If you create a job that runs xp_fixeddrives for you, you could have it write to a monitoring database on the server. Then any automation could poll that table.

I am going that route for my solution. I have added a simple integer identity column to my results (plus a datetime filed) that my automation can use as an ascending value to use in a reporting system import process. I can flush out old data when I feel it is getting to large.]]></description>
			<content:encoded><![CDATA[<p>An alternate way to leverage this for automation, is to use it within a SQL Agent job. Depending on how you have setup security on your SQL Agent process, it likely runs as a SysAdmin equivalent.</p>
<p>If you create a job that runs xp_fixeddrives for you, you could have it write to a monitoring database on the server. Then any automation could poll that table.</p>
<p>I am going that route for my solution. I have added a simple integer identity column to my results (plus a datetime filed) that my automation can use as an ascending value to use in a reporting system import process. I can flush out old data when I feel it is getting to large.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Bruce		</title>
		<link>https://www.dbrnd.com/2017/03/sql-server-use-xp_fixeddrives-procedure-to-monitor-the-disk-space-of-server/#comment-5560</link>

		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Wed, 22 Mar 2017 22:22:58 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4723#comment-5560</guid>

					<description><![CDATA[I love when this one gets trotted out every couple of years. The biggest thing everyone avoids is the ugly truth: the call to xp_fixeddrives must run as a SysAdmin level security right. Otherwise you get no results.

Trying to use this in automation suddenly becomes a lot harder because you now have to give your automation access to a very dangerous set of rights on your server.  It&#039;s even worse if your automation doesn&#039;t have a way to store encrypted passwords, and can not run in the context of a Windows domain user account. 

If you are running on SQL 2008 R2 or later, then you have access to a DMV called: sys.dm_os_volume_stats

I have never used it because I am stuck on 2008 (pre R2) servers, but you can search Google to find lots of articles on this exact topic.

It&#039;s not to say that this is not a really cool officially undocumented  procedure. It is fast and simple. It just requires elevated rights to work.]]></description>
			<content:encoded><![CDATA[<p>I love when this one gets trotted out every couple of years. The biggest thing everyone avoids is the ugly truth: the call to xp_fixeddrives must run as a SysAdmin level security right. Otherwise you get no results.</p>
<p>Trying to use this in automation suddenly becomes a lot harder because you now have to give your automation access to a very dangerous set of rights on your server.  It&#8217;s even worse if your automation doesn&#8217;t have a way to store encrypted passwords, and can not run in the context of a Windows domain user account. </p>
<p>If you are running on SQL 2008 R2 or later, then you have access to a DMV called: sys.dm_os_volume_stats</p>
<p>I have never used it because I am stuck on 2008 (pre R2) servers, but you can search Google to find lots of articles on this exact topic.</p>
<p>It&#8217;s not to say that this is not a really cool officially undocumented  procedure. It is fast and simple. It just requires elevated rights to work.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
