<?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 &#8211; LEN and DATALENGTH of NULL Simple Example</title>
	<atom:link href="http://blog.sqlauthority.com/2007/06/12/sql-server-len-and-datalength-of-null-simple-example/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/06/12/sql-server-len-and-datalength-of-null-simple-example/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Sun, 12 Feb 2012 09:22:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: jOSEPH</title>
		<link>http://blog.sqlauthority.com/2007/06/12/sql-server-len-and-datalength-of-null-simple-example/#comment-82724</link>
		<dc:creator><![CDATA[jOSEPH]]></dc:creator>
		<pubDate>Mon, 02 Aug 2010 18:07:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/12/sql-server-len-and-datalength-of-null-simple-example/#comment-82724</guid>
		<description><![CDATA[Hi,
  On googling this problem i was lead to your site.. and you have correctly identified the problem.
To help out other visitors, the solution is simply COALESCE the value before checking the LEN

eg: 
DECLARE @MyVar VARCHAR(10)
SET @MyVar = NULL
IF (LEN(COALESCE(@MyVar, &#039;&#039;)) = 0)]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
  On googling this problem i was lead to your site.. and you have correctly identified the problem.<br />
To help out other visitors, the solution is simply COALESCE the value before checking the LEN</p>
<p>eg:<br />
DECLARE @MyVar VARCHAR(10)<br />
SET @MyVar = NULL<br />
IF (LEN(COALESCE(@MyVar, &#8221;)) = 0)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

