<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL Server Scalar UDFs (User Defined Functions)</title>
	<atom:link href="http://arcanecode.com/2007/10/24/sql-server-scalar-udfs-user-defined-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://arcanecode.com/2007/10/24/sql-server-scalar-udfs-user-defined-functions/</link>
	<description>Making Microsoft .Net Development Magical</description>
	<lastBuildDate>Tue, 07 Feb 2012 16:57:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Wilmer Ridgebear</title>
		<link>http://arcanecode.com/2007/10/24/sql-server-scalar-udfs-user-defined-functions/#comment-27800</link>
		<dc:creator><![CDATA[Wilmer Ridgebear]]></dc:creator>
		<pubDate>Thu, 03 Jun 2010 13:18:55 +0000</pubDate>
		<guid isPermaLink="false">http://arcanecode.wordpress.com/2007/10/24/sql-server-scalar-udfs-user-defined-functions/#comment-27800</guid>
		<description><![CDATA[howdy there, i just found your web portal listed on yahoo, and i would like to tell that you compose exceptionally good on your blog. i am very moved by the way that you write, and the message is quality. in any case, i would also love to know whether you would love to exchange links with my web portal? i will be to the great extent than happy to reciprocate and insert your link on in the blogroll. waiting for your response, i give my sincere thanks and gooday!]]></description>
		<content:encoded><![CDATA[<p>howdy there, i just found your web portal listed on yahoo, and i would like to tell that you compose exceptionally good on your blog. i am very moved by the way that you write, and the message is quality. in any case, i would also love to know whether you would love to exchange links with my web portal? i will be to the great extent than happy to reciprocate and insert your link on in the blogroll. waiting for your response, i give my sincere thanks and gooday!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mai</title>
		<link>http://arcanecode.com/2007/10/24/sql-server-scalar-udfs-user-defined-functions/#comment-27549</link>
		<dc:creator><![CDATA[Mai]]></dc:creator>
		<pubDate>Mon, 08 Mar 2010 18:46:36 +0000</pubDate>
		<guid isPermaLink="false">http://arcanecode.wordpress.com/2007/10/24/sql-server-scalar-udfs-user-defined-functions/#comment-27549</guid>
		<description><![CDATA[And this is why I love racanecode.com. Awesome posts.]]></description>
		<content:encoded><![CDATA[<p>And this is why I love racanecode.com. Awesome posts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL Server Table-valued UDFs (User Defined Functions) &#171; Arcane Code</title>
		<link>http://arcanecode.com/2007/10/24/sql-server-scalar-udfs-user-defined-functions/#comment-17269</link>
		<dc:creator><![CDATA[SQL Server Table-valued UDFs (User Defined Functions) &#171; Arcane Code]]></dc:creator>
		<pubDate>Thu, 25 Oct 2007 06:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://arcanecode.wordpress.com/2007/10/24/sql-server-scalar-udfs-user-defined-functions/#comment-17269</guid>
		<description><![CDATA[[...] SQL Server Scalar UDFs (User Defined&#160;Functions)  [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SQL Server Scalar UDFs (User Defined&nbsp;Functions)  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Barnes</title>
		<link>http://arcanecode.com/2007/10/24/sql-server-scalar-udfs-user-defined-functions/#comment-17234</link>
		<dc:creator><![CDATA[Jeff Barnes]]></dc:creator>
		<pubDate>Wed, 24 Oct 2007 12:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://arcanecode.wordpress.com/2007/10/24/sql-server-scalar-udfs-user-defined-functions/#comment-17234</guid>
		<description><![CDATA[You are definitely right about performance trade offs.  I&#039;m a big fan of using UDFs to encapsulate logic such as an ugly case statement, a series of IF conditions, or some kind of calculation.  They are awesome in that context for improving readability and reuse.  However, I am very cautious about using them for select operations.

At a previous job, I was tasked with resolving some ridiculous performance issues for a large report.  It turned out that someone had written a nasty stored procedure using 7 or 8 UDFs as parameterized tables.  After rewriting it to use derived tables, the execution time dropped from several minutes to less than 10 seconds!

This was a dramatic case, but it has always stuck with me.]]></description>
		<content:encoded><![CDATA[<p>You are definitely right about performance trade offs.  I&#8217;m a big fan of using UDFs to encapsulate logic such as an ugly case statement, a series of IF conditions, or some kind of calculation.  They are awesome in that context for improving readability and reuse.  However, I am very cautious about using them for select operations.</p>
<p>At a previous job, I was tasked with resolving some ridiculous performance issues for a large report.  It turned out that someone had written a nasty stored procedure using 7 or 8 UDFs as parameterized tables.  After rewriting it to use derived tables, the execution time dropped from several minutes to less than 10 seconds!</p>
<p>This was a dramatic case, but it has always stuck with me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

