<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www2.sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SELECT Hints, Tips, Tricks FROM Hugo Kornelis WHERE RDBMS = 'SQL Server' : UDF</title><link>http://www2.sqlblog.com/blogs/hugo_kornelis/archive/tags/UDF/default.aspx</link><description>Tags: UDF</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>SQLRally Nordic 2012 – session material</title><link>http://www2.sqlblog.com/blogs/hugo_kornelis/archive/2012/10/05/sqlrally-nordic-2012-session-material.aspx</link><pubDate>Fri, 05 Oct 2012 16:49:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:45456</guid><dc:creator>Hugo Kornelis</dc:creator><slash:comments>0</slash:comments><comments>http://www2.sqlblog.com/blogs/hugo_kornelis/comments/45456.aspx</comments><wfw:commentRss>http://www2.sqlblog.com/blogs/hugo_kornelis/commentrss.aspx?PostID=45456</wfw:commentRss><description>As some of you might know, I have been to SQLRally Nordic 2012 in Copenhagen earlier this week. I was able to attend many interesting sessions, I had a great time catching up with old friends and meeting new people, and I was allowed to present a session...(&lt;a href="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/2012/10/05/sqlrally-nordic-2012-session-material.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://www2.sqlblog.com/aggbug.aspx?PostID=45456" width="1" height="1"&gt;</description><enclosure url="http://www2.sqlblog.com/blogs/hugo_kornelis/attachment/45456.ashx" length="994574" type="application/x-zip-compressed" /><category domain="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/tags/T-SQL/default.aspx">T-SQL</category><category domain="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/tags/Performance/default.aspx">Performance</category><category domain="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/tags/Conference/default.aspx">Conference</category><category domain="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/tags/People/default.aspx">People</category><category domain="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/tags/UDF/default.aspx">UDF</category></item><item><title>T-SQL User-Defined Functions: the good, the bad, and the ugly (part 4)</title><link>http://www2.sqlblog.com/blogs/hugo_kornelis/archive/2012/08/25/t-sql-user-defined-functions-the-good-the-bad-and-the-ugly-part-4.aspx</link><pubDate>Fri, 24 Aug 2012 21:07:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44860</guid><dc:creator>Hugo Kornelis</dc:creator><slash:comments>9</slash:comments><comments>http://www2.sqlblog.com/blogs/hugo_kornelis/comments/44860.aspx</comments><wfw:commentRss>http://www2.sqlblog.com/blogs/hugo_kornelis/commentrss.aspx?PostID=44860</wfw:commentRss><description>Scalar user-defined functions are bad for performance. I already showed that for T-SQL scalar user-defined functions without and with data access, and for most CLR scalar user-defined functions without data access , and in this blog post I will show that...(&lt;a href="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/2012/08/25/t-sql-user-defined-functions-the-good-the-bad-and-the-ugly-part-4.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://www2.sqlblog.com/aggbug.aspx?PostID=44860" width="1" height="1"&gt;</description><category domain="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/tags/T-SQL/default.aspx">T-SQL</category><category domain="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/tags/CLR/default.aspx">CLR</category><category domain="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/tags/UDF/default.aspx">UDF</category></item><item><title>T-SQL User-Defined Functions: the good, the bad, and the ugly (part 3)</title><link>http://www2.sqlblog.com/blogs/hugo_kornelis/archive/2012/06/29/t-sql-user-defined-functions-the-good-the-bad-and-the-ugly-part-3.aspx</link><pubDate>Fri, 29 Jun 2012 18:44:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44146</guid><dc:creator>Hugo Kornelis</dc:creator><slash:comments>6</slash:comments><comments>http://www2.sqlblog.com/blogs/hugo_kornelis/comments/44146.aspx</comments><wfw:commentRss>http://www2.sqlblog.com/blogs/hugo_kornelis/commentrss.aspx?PostID=44146</wfw:commentRss><description>I showed why T-SQL scalar user-defined functions are bad for performance in two previous posts. In this post, I will show that CLR scalar user-defined functions are bad as well (though not always quite as bad as T-SQL scalar user-defined functions). I...(&lt;a href="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/2012/06/29/t-sql-user-defined-functions-the-good-the-bad-and-the-ugly-part-3.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://www2.sqlblog.com/aggbug.aspx?PostID=44146" width="1" height="1"&gt;</description><category domain="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/tags/T-SQL/default.aspx">T-SQL</category><category domain="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/tags/Performance/default.aspx">Performance</category><category domain="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/tags/UDF/default.aspx">UDF</category></item><item><title>T-SQL User-Defined Functions: the good, the bad, and the ugly (part 2)</title><link>http://www2.sqlblog.com/blogs/hugo_kornelis/archive/2012/05/26/t-sql-user-defined-functions-the-good-the-bad-and-the-ugly-part-2.aspx</link><pubDate>Sat, 26 May 2012 14:56:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:43590</guid><dc:creator>Hugo Kornelis</dc:creator><slash:comments>1</slash:comments><comments>http://www2.sqlblog.com/blogs/hugo_kornelis/comments/43590.aspx</comments><wfw:commentRss>http://www2.sqlblog.com/blogs/hugo_kornelis/commentrss.aspx?PostID=43590</wfw:commentRss><description>In a previous blog post , I demonstrated just how much you can hurt your performance by encapsulating expressions and computations in a user-defined function (UDF). I focused on scalar functions that didn’t include any data access. In this post, I will...(&lt;a href="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/2012/05/26/t-sql-user-defined-functions-the-good-the-bad-and-the-ugly-part-2.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://www2.sqlblog.com/aggbug.aspx?PostID=43590" width="1" height="1"&gt;</description><category domain="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/tags/T-SQL/default.aspx">T-SQL</category><category domain="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/tags/UDF/default.aspx">UDF</category></item><item><title>T-SQL User-Defined Functions: the good, the bad, and the ugly (part 1)</title><link>http://www2.sqlblog.com/blogs/hugo_kornelis/archive/2012/05/20/t-sql-user-defined-functions-the-good-the-bad-and-the-ugly-part-1.aspx</link><pubDate>Sun, 20 May 2012 14:08:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:43466</guid><dc:creator>Hugo Kornelis</dc:creator><slash:comments>23</slash:comments><comments>http://www2.sqlblog.com/blogs/hugo_kornelis/comments/43466.aspx</comments><wfw:commentRss>http://www2.sqlblog.com/blogs/hugo_kornelis/commentrss.aspx?PostID=43466</wfw:commentRss><description>So you thought that encapsulating code in user-defined functions for easy reuse is a good idea? Think again! SQL Server supports three types of user-defined functions. Only one of them qualifies as good. The other two – well, the title says it all, doesn’t...(&lt;a href="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/2012/05/20/t-sql-user-defined-functions-the-good-the-bad-and-the-ugly-part-1.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://www2.sqlblog.com/aggbug.aspx?PostID=43466" width="1" height="1"&gt;</description><category domain="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/tags/T-SQL/default.aspx">T-SQL</category><category domain="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/tags/Personal/default.aspx">Personal</category><category domain="http://www2.sqlblog.com/blogs/hugo_kornelis/archive/tags/UDF/default.aspx">UDF</category></item></channel></rss>