 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The VBScript Network and Systems Administrator&#039;s Cafe &#187; SQL Server</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/tag/sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator</link>
	<description></description>
	<lastBuildDate>Tue, 11 Oct 2011 18:36:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Easily compare dates from with in VBScript</title>
		<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/easily-compare-dates-from-with-in-vbscript/</link>
		<comments>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/easily-compare-dates-from-with-in-vbscript/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 18:11:43 +0000</pubDate>
		<dc:creator>Jerry Lees</dc:creator>
				<category><![CDATA[date]]></category>
		<category><![CDATA[Date Comparison]]></category>
		<category><![CDATA[DATEDIFF]]></category>
		<category><![CDATA[Dates]]></category>
		<category><![CDATA[VBScipt]]></category>
		<category><![CDATA[VBScript Functions]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/easily-compare-dates-from-with-in-vbscript/</guid>
		<description><![CDATA[On occasion you need to compare two dates in your scripts, this can be a real challenge when you approach the date as if it were a string and/or compare the date parts to one another. Then finding the difference can be a whole other set of challenges if your dates span several months, days, [...]]]></description>
				<content:encoded><![CDATA[<p>On occasion you need to compare two dates in your scripts, this can be a real challenge when you approach the date as if it were a string and/or compare the date parts to one another. Then finding the difference can be a whole other set of challenges if your dates span several months, days, or years.</p>
<p>Luckily, there is a function right into VBScript that helps you compare two dates to one another and returns the difference in a unit of time that you specify! That function is <a href="http://www.w3schools.com/vbScript/func_datediff.asp" target="_blank">the datediff function</a>!</p>
<p>Below is an example that returns the number of seconds, minutes, hours, days, and years between now and February 25, 1973.</p>
<p><span style="color: #0000ff">Option Explicit</span></p>
<p><span style="color: #0000ff">Dim DateThen, DateNow</span></p>
<p><span style="color: #0000ff">DateThen = &#8220;2/25/1973&#8243;<br />
DateNow = Now</span></p>
<p><span style="color: #0000ff">WScript.Echo DateDiff(&#8220;s&#8221;,DateThen, DateNow)<br />
WScript.Echo DateDiff(&#8220;n&#8221;,DateThen, DateNow)<br />
WScript.Echo DateDiff(&#8220;h&#8221;,DateThen, DateNow)<br />
WScript.Echo DateDiff(&#8220;d&#8221;,DateThen, DateNow)<br />
WScript.Echo DateDiff(&#8220;yyyy&#8221;,DateThen, DateNow)<br />
</span></p>
<p>Enjoy!</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/easily-compare-dates-from-with-in-vbscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A useful site that contains a Microsoft SQL version information database</title>
		<link>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/a-useful-site-that-contains-a-microsoft-sql-version-information-database/</link>
		<comments>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/a-useful-site-that-contains-a-microsoft-sql-version-information-database/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 03:12:13 +0000</pubDate>
		<dc:creator>Jerry Lees</dc:creator>
				<category><![CDATA[Essential sites]]></category>
		<category><![CDATA[Microsoft SQL Server]]></category>
		<category><![CDATA[Server Patching]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[web tools]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/?p=110</guid>
		<description><![CDATA[I don&#8217;t get the occasion to manage SQL servers in a DBA role any longer, like MrDenny in his blog, nor have I been a true assigned DBA&#8211; I&#8217;ve only worked at places where the database servers were treated like any other server. Basically, mine to manage. Those of you in small to medium enterprises know [...]]]></description>
				<content:encoded><![CDATA[<p>I don&#8217;t get the occasion to manage SQL servers in a DBA role any longer, like <a href="http://itknowledgeexchange.techtarget.com/sql-server/" target="_blank">MrDenny</a> in his blog, nor have I been a true assigned DBA&#8211; I&#8217;ve only worked at places where the database servers were treated like any other server. Basically, mine to manage. Those of you in small to medium enterprises know what I&#8217;m talking about&#8230; If it plugs into the network it&#8217;s a Network/Server admin&#8217;s responsibility.</p>
<p>Now my role is more along the lines of Supporting the web applications that use the services that the database servers provide. Leaving the DBA role up to the folks assigned the title of DBA. Oh, how I used to think that would be so much easier! But that was when I imagined a team of folks who thought and worked like I did&#8230; Instead on occasion you get the folks on the other team who don&#8217;t believe a problem exists.</p>
<p>Well, I&#8217;ve recently found a site that really comes in handy in determining if SQL patches have been applied or if they may be relevant to an article you are reading that looks promising over at SQLSecurity.com that  <a href="http://www.sqlsecurity.com/FAQs/SQLServerVersionDatabase/tabid/63/Default.aspx">is a database of SQL Server patches</a> that helps you determine if a patch is relevant to your installation or not.</p>
<p>Hopefully, this will help you out in your challenges!</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/a-useful-site-that-contains-a-microsoft-sql-version-information-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
