﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Roy Carlson / Article Discussions / Article Discussions by Author  / Monitoring File Sizes in SQL Server / 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, 22 May 2013 04:38:56 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Monitoring File Sizes in SQL Server</title><link>http://www.sqlservercentral.com/Forums/Topic318451-219-1.aspx</link><description>&lt;P&gt;Great article. I look forward to the next in the series.&lt;/P&gt;&lt;P&gt;I did have one problem. I tried the post-script code for adding the date and time to the filename, and got a Windows Script Host error.&lt;/P&gt;&lt;P&gt;Line: 10&lt;/P&gt;&lt;P&gt;Char: 1&lt;/P&gt;&lt;P&gt;Error: 'Invalid procedure call or argument: 'DatePart'&lt;/P&gt;&lt;P&gt;Code: 800A0005&lt;/P&gt;&lt;P&gt;Source Microsoft VBScript runtime error&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I am running WSH v 5.6, so i am not sure what is causing the error.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description><pubDate>Wed, 08 Nov 2006 01:18:00 GMT</pubDate><dc:creator>David le Quesne</dc:creator></item><item><title>RE: Monitoring File Sizes in SQL Server</title><link>http://www.sqlservercentral.com/Forums/Topic318451-219-1.aspx</link><description>&lt;P&gt;Nice easy to follow article. &lt;/P&gt;&lt;P&gt;I wonder if it would be possible (as I have no vb/coding experience either so going a little blind here), to monitor different instances and servers through the same page?&lt;/P&gt;</description><pubDate>Mon, 06 Nov 2006 20:07:00 GMT</pubDate><dc:creator>TroyG</dc:creator></item><item><title>RE: Monitoring File Sizes in SQL Server</title><link>http://www.sqlservercentral.com/Forums/Topic318451-219-1.aspx</link><description>Dave,&lt;b&gt;cscript //H:Cscript&lt;/b&gt; will make cscript the default script engine.  Windows Script Host (WSH) is the program that runs scripts (VB scripts or javascripts) on Windows operating systems.  WSH has two script engines.  The default is the wscript engine and the alternate is the cscript engine.  The main difference is that the wscript engine will send all of the text from a VB script WScript.Echo command to a dialog box that must be acknowledged by pressing an "OK" button while the cscript engine sends this text to the standard command line output in a cmd window (a.k.a DOS window).  Setting the default engine to cscript will allow this VBScript to run without any user input.</description><pubDate>Mon, 06 Nov 2006 11:06:00 GMT</pubDate><dc:creator>James Rochez</dc:creator></item><item><title>RE: Monitoring File Sizes in SQL Server</title><link>http://www.sqlservercentral.com/Forums/Topic318451-219-1.aspx</link><description>&lt;P&gt;Works perfectly for smaller databases but the variables don't seem to hold GB sized files.  What is the syntax for defining a larger variable type instead of just the default?  The culprit is this line:&lt;/P&gt;&lt;P&gt;strFileMB = objFile.FileSize / CONVERSION_FACTOR&lt;/P&gt;&lt;P&gt;When objFile.FileSize is too big this displays blank for sime reason.  Commenting out the division part and just trying to print objFile.FileSize is also a blank so I suspect the problem is there.  How is that built in var defined and how can it be made to handle a large file size?&lt;/P&gt;</description><pubDate>Mon, 06 Nov 2006 08:37:00 GMT</pubDate><dc:creator>magarity kerns</dc:creator></item><item><title>RE: Monitoring File Sizes in SQL Server</title><link>http://www.sqlservercentral.com/Forums/Topic318451-219-1.aspx</link><description>&lt;P&gt;I moved that script into Excel, It Work like a charm!!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description><pubDate>Mon, 06 Nov 2006 07:51:00 GMT</pubDate><dc:creator>P@</dc:creator></item><item><title>RE: Monitoring File Sizes in SQL Server</title><link>http://www.sqlservercentral.com/Forums/Topic318451-219-1.aspx</link><description>Good article!  You can extend this concept to store the extracted data in a Dba database and then use scheduled report server reports.  I have used this concept to email weekly report server reports on overall hard drive space and individual database stats as described in this article.</description><pubDate>Mon, 06 Nov 2006 07:35:00 GMT</pubDate><dc:creator>Hugh Thomas</dc:creator></item><item><title>RE: Monitoring File Sizes in SQL Server</title><link>http://www.sqlservercentral.com/Forums/Topic318451-219-1.aspx</link><description>&lt;P&gt;I have no VB skills.  When you say "Type &lt;B&gt;&lt;I&gt;cscript //H:Cscript&lt;/I&gt;&lt;/B&gt;. This will make cscript the default so that to run a vbscript all you need to type is the &lt;B&gt;&lt;I&gt;yourScript.vbs&lt;/I&gt;&lt;/B&gt; at the prompt without the cscript preface.".  Default of what?  Since I have no VB background I want to make sure setting this as a default does not break any existing processes.&lt;/P&gt;&lt;P&gt;Thanks,    Dave&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description><pubDate>Mon, 06 Nov 2006 07:28:00 GMT</pubDate><dc:creator>DBADave</dc:creator></item><item><title>RE: Monitoring File Sizes in SQL Server</title><link>http://www.sqlservercentral.com/Forums/Topic318451-219-1.aspx</link><description>&lt;P&gt;Roy,&lt;/P&gt;&lt;P&gt;Pretty good article.&lt;/P&gt;&lt;P&gt;I have a little script I use to determine if I'm running out of space on each of the server drives and send me an email when the freespace gets below a threshold, rather than look at the space of each of the individual files.  This might be useful as well....&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description><pubDate>Mon, 06 Nov 2006 05:31:00 GMT</pubDate><dc:creator>SuperDBA-207096</dc:creator></item><item><title>RE: Monitoring File Sizes in SQL Server</title><link>http://www.sqlservercentral.com/Forums/Topic318451-219-1.aspx</link><description>&lt;P&gt;Roy,&lt;/P&gt;&lt;P&gt;Excellent article.  &lt;/P&gt;&lt;P&gt;Can this script be run for multiple servers?  Can I set the strComputer variable multiple times similar to the multiple databases?&lt;/P&gt;&lt;P&gt;Thanks,John&lt;/P&gt;</description><pubDate>Mon, 06 Nov 2006 05:05:00 GMT</pubDate><dc:creator>laker_42</dc:creator></item><item><title>Monitoring File Sizes in SQL Server</title><link>http://www.sqlservercentral.com/Forums/Topic318451-219-1.aspx</link><description>Comments posted here are about the content posted at &lt;A HREF="temp"&gt;temp&lt;/A&gt;</description><pubDate>Thu, 26 Oct 2006 11:27:00 GMT</pubDate><dc:creator>rscarlson</dc:creator></item></channel></rss>