﻿<?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  / get total disk space per instance from within SQL without cmdshell. / 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>Wed, 19 Jun 2013 08:07:32 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: get total disk space per instance from within SQL without cmdshell.</title><link>http://www.sqlservercentral.com/Forums/Topic1106767-146-1.aspx</link><description>thnxs</description><pubDate>Tue, 11 Dec 2012 03:28:44 GMT</pubDate><dc:creator>salimdkg4</dc:creator></item><item><title>RE: get total disk space per instance from within SQL without cmdshell.</title><link>http://www.sqlservercentral.com/Forums/Topic1106767-146-1.aspx</link><description>itws workingthanxs</description><pubDate>Tue, 11 Dec 2012 03:27:35 GMT</pubDate><dc:creator>salimdkg4</dc:creator></item><item><title>RE: get total disk space per instance from within SQL without cmdshell.</title><link>http://www.sqlservercentral.com/Forums/Topic1106767-146-1.aspx</link><description>thanks guys.  appreciate your time.  i'll have a look @ those options now.   </description><pubDate>Wed, 11 May 2011 06:30:49 GMT</pubDate><dc:creator>snomad</dc:creator></item><item><title>RE: get total disk space per instance from within SQL without cmdshell.</title><link>http://www.sqlservercentral.com/Forums/Topic1106767-146-1.aspx</link><description>You could always use SP_OACreate.Look at this thread for a possible script:-[url]http://www.sqlservercentral.com/Forums/Topic113227-5-1.aspx[/url]</description><pubDate>Wed, 11 May 2011 06:26:49 GMT</pubDate><dc:creator>Ian Scarlett</dc:creator></item><item><title>RE: get total disk space per instance from within SQL without cmdshell.</title><link>http://www.sqlservercentral.com/Forums/Topic1106767-146-1.aspx</link><description>Is powershell an option?  I can't code with it but I'm sure google would solve that one for ya.&amp;lt;oi&amp;gt;sql?SSIS?</description><pubDate>Wed, 11 May 2011 06:22:35 GMT</pubDate><dc:creator>Ninja's_RGR'us</dc:creator></item><item><title>RE: get total disk space per instance from within SQL without cmdshell.</title><link>http://www.sqlservercentral.com/Forums/Topic1106767-146-1.aspx</link><description>[quote][b]Syed Jahanzaib Bin hassan (5/11/2011)[/b][hr]declare @driveName varchar(100)declare @query varchar(1000)declare @fsinfo varchar(1000)set @driveName = 'C'set @query ='fsutil volume diskfree '+@driveName+':\'	set @fsinfo = 'fsutil fsinfo volumeinfo '+@driveName+':\'exec xp_cmdshell @queryexec xp_cmdshell @fsinfocheck this T-SQL[/quote]Forgot to read again???</description><pubDate>Wed, 11 May 2011 06:21:25 GMT</pubDate><dc:creator>Ninja's_RGR'us</dc:creator></item><item><title>RE: get total disk space per instance from within SQL without cmdshell.</title><link>http://www.sqlservercentral.com/Forums/Topic1106767-146-1.aspx</link><description>By which I mean I'm prevented by standard operating procs here ... not that there's a technical issue in doing so.</description><pubDate>Wed, 11 May 2011 05:26:35 GMT</pubDate><dc:creator>snomad</dc:creator></item><item><title>RE: get total disk space per instance from within SQL without cmdshell.</title><link>http://www.sqlservercentral.com/Forums/Topic1106767-146-1.aspx</link><description>Thanks, but I can't use cmdshell - frustrating I know!</description><pubDate>Wed, 11 May 2011 05:23:34 GMT</pubDate><dc:creator>snomad</dc:creator></item><item><title>RE: get total disk space per instance from within SQL without cmdshell.</title><link>http://www.sqlservercentral.com/Forums/Topic1106767-146-1.aspx</link><description>declare @driveName varchar(100)declare @query varchar(1000)declare @fsinfo varchar(1000)set @driveName = 'C'set @query ='fsutil volume diskfree '+@driveName+':\'	set @fsinfo = 'fsutil fsinfo volumeinfo '+@driveName+':\'exec xp_cmdshell @queryexec xp_cmdshell @fsinfocheck this T-SQL</description><pubDate>Wed, 11 May 2011 05:19:27 GMT</pubDate><dc:creator>Syed Jahanzaib Bin hassan</dc:creator></item><item><title>get total disk space per instance from within SQL without cmdshell.</title><link>http://www.sqlservercentral.com/Forums/Topic1106767-146-1.aspx</link><description>For policy reasons I can't enable cmdshell.I can get disk free space via xp_fixeddrives.  But is it possible to get total disk space (ie. free space + used space).I need this for all drives (so can't minus SQL file sizes off free space as there are non sql files).I need to run on multiple instances &amp; regularly.Thanks in advance!</description><pubDate>Wed, 11 May 2011 05:10:31 GMT</pubDate><dc:creator>snomad</dc:creator></item></channel></rss>