<?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> &#187; log file</title>
	<atom:link href="http://benchmarkitconsulting.com/tag/log-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://benchmarkitconsulting.com</link>
	<description></description>
	<lastBuildDate>Mon, 06 Feb 2012 16:34:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Another Reason SQL 2000 should just go away!   :)</title>
		<link>http://benchmarkitconsulting.com/colin-stasiuk/2009/07/02/another-reason-sql-2000-should-just-go-away/</link>
		<comments>http://benchmarkitconsulting.com/colin-stasiuk/2009/07/02/another-reason-sql-2000-should-just-go-away/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 21:01:13 +0000</pubDate>
		<dc:creator>Colin Stasiuk</dc:creator>
				<category><![CDATA[Benchmark IT Consulting]]></category>
		<category><![CDATA[Colin Stasiuk]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[bitwise]]></category>
		<category><![CDATA[DMV]]></category>
		<category><![CDATA[log file]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2000]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[Transaction Log]]></category>

		<guid isPermaLink="false">http://benchmarkitconsulting.com/?p=785</guid>
		<description><![CDATA[Quick without looking it up&#8230; what does this script do: SELECT * FROM   dbo.sysfiles  WHERE  (status &#38; 0x40) &#60;&#62; 0 So if you&#8217;re like me and don&#8217;t have all the bit compares memorized for all the tables you probably didn&#8217;t know that this is how (in SQL 2000) you would query the current database to find all the transaction log files.  Every now and [...]]]></description>
			<content:encoded><![CDATA[<p>Quick without looking it up&#8230; what does this script do:</p>
<p><code style="font-size: 12px;"><span style="color:blue">SELECT </span><span style="color:gray">*<br />
</span><span style="color:blue">FROM   </span><span style="color:black">dbo.sysfiles <br />
</span><span style="color:blue">WHERE  </span><span style="color:gray">(</span><span style="color:black">status </span><span style="color:gray">&amp; </span><span style="color:black">0x40</span><span style="color:gray">) &lt;&gt; </span><span style="color:black">0</span></code></p>
<p>So if you&#8217;re like me and don&#8217;t have all the bit compares memorized for all the tables you probably didn&#8217;t know that this is how (in SQL 2000) you would query the current database to find all the transaction log files.  </p>
<p>Every now and again I take for granted the major jump that was SQL 2000 to SQL 2005 and little things like this just show me how much happier I am working in a SQL 2005/2008 environment. </p>
<p>Let me channel my inner Naughty By Nature here:</p>
<p>You down with DMV&#8230;. yeah you know me<br />
You down with DMV&#8230; yeah you know me</p>
<p>(Sorry I&#8217;m still hurting from not winning <a href="http://sqlfool.com/2009/06/sql-rap-contest-results/" target="_blank">SQL Fool&#8217;s Rap Contest </a> )</p>
<p><span style="text-decoration: line-through;">DAMN YOU</span>  My humble congratulations to <a href="http://twitter.com/way0utwest" target="_blank">Steve &#8220;Flavor Flav&#8221; Jones</a></p>
<p><img class="alignnone size-full wp-image-786" title="stevejones" src="http://benchmarkitconsulting.com/wp-content/uploads/2009/07/stevejones.jpg" alt="stevejones" width="93" height="223" /></p>
<p>Now if you were to come across this code:</p>
<p><code style="font-size: 12px;"><span style="color:blue">SELECT&nbsp;</span><span style="color:gray">*&nbsp;<br />
<br /></span><span style="color:blue">FROM&nbsp;&nbsp;&nbsp;</span><span style="color:black">sys.database_files<br />
<br /></span><span style="color:blue">WHERE&nbsp;&nbsp;</span><span style="color:black">type_desc&nbsp;</span><span style="color:blue">=&nbsp;</span><span style="color:red">&#39;LOG&#39;<br />
<br /></span></code></p>
<p>Wouldn&#8217;t you have a much better idea as to what the query is trying to accomplish?</p>
<p>Anyways just another (albeit small) reason why I&#8217;m glad to be leaving SQL 2000 in the past.</p>
<p>Enjoy!!</p>
<p><span><a href="http://benchmarkitconsulting.com" target="_blank"><img class="alignnone size-full wp-image-402" title="benchmark_sm" src="http://benchmarkitconsulting.com/wp-content/uploads/2009/02/benchmark_sm.jpg" alt="" width="157" height="74" /></a><a href="http://sqlserverpedia.com/wiki/Editors#Colin_Stasiuk" target="_blank"><img src="http://sqlserverpedia.com/badges/SQLServerPedia_Badge_Blogger.jpg" alt="" width="120" height="60" /> </a></span></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Another+Reason+SQL+2000+should+just+go+away%21+++%3A%29+http://tinyurl.com/m4nn42" title="Post to Twitter"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/07/02/another-reason-sql-2000-should-just-go-away/&amp;title=Another+Reason+SQL+2000+should+just+go+away%21+++%3A%29" title="Post to Delicious"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-delicious-big4.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/07/02/another-reason-sql-2000-should-just-go-away/&amp;title=Another+Reason+SQL+2000+should+just+go+away%21+++%3A%29" title="Post to Digg"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-digg-big4.png" alt="Post to Digg" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/07/02/another-reason-sql-2000-should-just-go-away/&amp;title=Another+Reason+SQL+2000+should+just+go+away%21+++%3A%29" title="Post to StumbleUpon"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-su-big4.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://benchmarkitconsulting.com/colin-stasiuk/2009/07/02/another-reason-sql-2000-should-just-go-away/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

