<?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>SQL Server Planet &#187; TSQL</title>
	<atom:link href="http://sqlserverplanet.com/category/tsql/feed" rel="self" type="application/rss+xml" />
	<link>http://sqlserverplanet.com</link>
	<description>Tips and Articles on SQL Server</description>
	<lastBuildDate>Thu, 03 May 2012 23:47:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>User Defined Functions and Performance</title>
		<link>http://sqlserverplanet.com/query-optimizer/user-defined-functions-and-performance</link>
		<comments>http://sqlserverplanet.com/query-optimizer/user-defined-functions-and-performance#comments</comments>
		<pubDate>Wed, 25 Apr 2012 06:55:07 +0000</pubDate>
		<dc:creator>Derek Dieter</dc:creator>
				<category><![CDATA[Concurrency]]></category>
		<category><![CDATA[Query Optimizer]]></category>
		<category><![CDATA[TSQL]]></category>

		<guid isPermaLink="false">http://sqlserverplanet.com/?p=2310</guid>
		<description><![CDATA[There is definitely a lack of awareness in the SQL world regarding the use of user defined functions and the potential performance hit they can have when using within your queries. Don&#8217;t get me wrong, I would love nothing more than to be able to centralize my commonly used code into functions for reuse. In [...]]]></description>
		<wfw:commentRss>http://sqlserverplanet.com/query-optimizer/user-defined-functions-and-performance/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Overcome Divide by Zero Using NULLIF</title>
		<link>http://sqlserverplanet.com/tsql/overcome-divide-by-zero-using-nullif</link>
		<comments>http://sqlserverplanet.com/tsql/overcome-divide-by-zero-using-nullif#comments</comments>
		<pubDate>Fri, 06 Apr 2012 05:08:41 +0000</pubDate>
		<dc:creator>Derek Dieter</dc:creator>
				<category><![CDATA[TSQL]]></category>

		<guid isPermaLink="false">http://sqlserverplanet.com/?p=2346</guid>
		<description><![CDATA[Anytime we are dividing we need to think of the divide by zero scenario. Even if you think you will never encounter this with your result set, it&#8217;s advisable to guard against it because when divide by zero is encountered, an error is thrown. The best method I&#8217;ve found to overcome this is by using [...]]]></description>
		<wfw:commentRss>http://sqlserverplanet.com/tsql/overcome-divide-by-zero-using-nullif/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Query Method Faster Than BETWEEN</title>
		<link>http://sqlserverplanet.com/sql-optimization/a-query-method-faster-than-between</link>
		<comments>http://sqlserverplanet.com/sql-optimization/a-query-method-faster-than-between#comments</comments>
		<pubDate>Mon, 02 Apr 2012 07:18:24 +0000</pubDate>
		<dc:creator>Derek Dieter</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[SQL Optimization]]></category>
		<category><![CDATA[TSQL]]></category>

		<guid isPermaLink="false">http://sqlserverplanet.com/?p=2342</guid>
		<description><![CDATA[This is an invaluable trick that can be sometimes be used instead of the BETWEEN operator. A common place this can be used is in an historical table that contains EffectiveFrom &#038; EffectiveTo dates. In these kinds of tables, many historical versions of a record can be stored. Each record in this scenario will contain [...]]]></description>
		<wfw:commentRss>http://sqlserverplanet.com/sql-optimization/a-query-method-faster-than-between/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Compare Stored Procedure Output by Creating a Test Harness</title>
		<link>http://sqlserverplanet.com/sql-optimization/2325</link>
		<comments>http://sqlserverplanet.com/sql-optimization/2325#comments</comments>
		<pubDate>Tue, 27 Mar 2012 02:16:35 +0000</pubDate>
		<dc:creator>Derek Dieter</dc:creator>
				<category><![CDATA[SQL Optimization]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[TSQL]]></category>

		<guid isPermaLink="false">http://sqlserverplanet.com/?p=2325</guid>
		<description><![CDATA[When optimizing procedures often times you need to rewrite the procedure in order to speed it up. However, when you&#8217;re finished how can you be sure that the result set is still the same? This article will show you how to run a thorough test to make sure. We&#8217;ll execute the old and new stored [...]]]></description>
		<wfw:commentRss>http://sqlserverplanet.com/sql-optimization/2325/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Avoiding IF.. ELSE by using WHERE EXISTS</title>
		<link>http://sqlserverplanet.com/tsql/avoiding-if-else-by-using-where-exists</link>
		<comments>http://sqlserverplanet.com/tsql/avoiding-if-else-by-using-where-exists#comments</comments>
		<pubDate>Sun, 29 Jan 2012 19:58:06 +0000</pubDate>
		<dc:creator>Derek Dieter</dc:creator>
				<category><![CDATA[Concurrency]]></category>
		<category><![CDATA[TSQL]]></category>

		<guid isPermaLink="false">http://sqlserverplanet.com/?p=2284</guid>
		<description><![CDATA[When coming from a programming background, it&#8217;s natural to want to frame conditional operations within the familiar if.. else constructs. This happens in a lot of SQL code I have worked with (and I used to be a contributor also). The technique below is based on a common scenario. Say you want to insert new [...]]]></description>
		<wfw:commentRss>http://sqlserverplanet.com/tsql/avoiding-if-else-by-using-where-exists/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

