<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://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>Why to use COALESCE instead of ISNULL</title><link>http://sqlblog.com/blogs/john_paul_cook/archive/2013/02/06/why-to-use-coalesce-instead-of-isnull.aspx</link><description>As of this writing, Books Online isn't completely clear about how ISNULL works. I submitted suggestion 778704 on Connect asking Microsoft to explicitly state that if the replacement_value is longer than the check_expression , it will be truncated to the</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: Why to use COALESCE instead of ISNULL</title><link>http://sqlblog.com/blogs/john_paul_cook/archive/2013/02/06/why-to-use-coalesce-instead-of-isnull.aspx#47521</link><pubDate>Thu, 07 Feb 2013 01:44:01 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47521</guid><dc:creator>Aaron Bertrand</dc:creator><description>&lt;p&gt;I talk about this issue and a bunch of others in the following tip:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.mssqltips.com/sqlservertip/2689/deciding-between-coalesce-and-isnull-in-sql-server/"&gt;http://www.mssqltips.com/sqlservertip/2689/deciding-between-coalesce-and-isnull-in-sql-server/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The only place where ISNULL trumps COALESCE is when the expression is a subquery - with COALESCE it may be evaluated twice.&lt;/p&gt;
</description></item><item><title>re: Why to use COALESCE instead of ISNULL</title><link>http://sqlblog.com/blogs/john_paul_cook/archive/2013/02/06/why-to-use-coalesce-instead-of-isnull.aspx#47526</link><pubDate>Thu, 07 Feb 2013 10:34:27 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47526</guid><dc:creator>Francesco Quaratino</dc:creator><description>&lt;p&gt;really scary!&lt;/p&gt;
</description></item><item><title>re: Why to use COALESCE instead of ISNULL</title><link>http://sqlblog.com/blogs/john_paul_cook/archive/2013/02/06/why-to-use-coalesce-instead-of-isnull.aspx#47542</link><pubDate>Thu, 07 Feb 2013 19:13:20 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47542</guid><dc:creator>Paul White</dc:creator><description>&lt;p&gt;I prefer ISNULL in most cases for a range of detailed reasons, many related to better optimizer reasoning with ISNULL. The argument presented here is one small aspect of the differences which I do not find at all compelling.&lt;/p&gt;
</description></item><item><title>re: Why to use COALESCE instead of ISNULL</title><link>http://sqlblog.com/blogs/john_paul_cook/archive/2013/02/06/why-to-use-coalesce-instead-of-isnull.aspx#47595</link><pubDate>Fri, 08 Feb 2013 10:58:10 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47595</guid><dc:creator>gbn</dc:creator><description>&lt;p&gt;I prefer ISNULL too to avoid accidental datatype conversions due to datatype precedence. And as Paul said.&lt;/p&gt;
&lt;p&gt;Discussion here: &lt;a rel="nofollow" target="_new" href="http://dba.stackexchange.com/q/4274/630"&gt;http://dba.stackexchange.com/q/4274/630&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>