<?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; SPACE Function Example</title>
	<atom:link href="http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 09 Feb 2012 08:55:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Ashok Kumar</title>
		<link>http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-63165</link>
		<dc:creator><![CDATA[Ashok Kumar]]></dc:creator>
		<pubDate>Thu, 18 Mar 2010 10:40:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-63165</guid>
		<description><![CDATA[After using len() function the length of code field show two different value. This data is import from excel to sql server.
How to find the character which not shown in code but count in len() function.

Code              Length
P42400020        9	
P42400020       10]]></description>
		<content:encoded><![CDATA[<p>After using len() function the length of code field show two different value. This data is import from excel to sql server.<br />
How to find the character which not shown in code but count in len() function.</p>
<p>Code              Length<br />
P42400020        9<br />
P42400020       10</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roshan</title>
		<link>http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-43619</link>
		<dc:creator><![CDATA[Roshan]]></dc:creator>
		<pubDate>Thu, 09 Oct 2008 09:48:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-43619</guid>
		<description><![CDATA[Thanks useful tip

Roshan from Sri Lanka]]></description>
		<content:encoded><![CDATA[<p>Thanks useful tip</p>
<p>Roshan from Sri Lanka</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-41450</link>
		<dc:creator><![CDATA[Marc]]></dc:creator>
		<pubDate>Thu, 07 Aug 2008 16:03:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-41450</guid>
		<description><![CDATA[Great tip, as always.

Do you think there is any value in using the space function instead of a &#039;&#039; if you want to return an empty string?]]></description>
		<content:encoded><![CDATA[<p>Great tip, as always.</p>
<p>Do you think there is any value in using the space function instead of a &#8221; if you want to return an empty string?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandeep</title>
		<link>http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-39472</link>
		<dc:creator><![CDATA[Sandeep]]></dc:creator>
		<pubDate>Tue, 24 Jun 2008 12:48:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-39472</guid>
		<description><![CDATA[Hello
Please any one tell me 
Can i change face,size or color of my data using such inbuilt functions ?
and how?

Thanx in advance

Sandeep]]></description>
		<content:encoded><![CDATA[<p>Hello<br />
Please any one tell me<br />
Can i change face,size or color of my data using such inbuilt functions ?<br />
and how?</p>
<p>Thanx in advance</p>
<p>Sandeep</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge</title>
		<link>http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-35062</link>
		<dc:creator><![CDATA[Jorge]]></dc:creator>
		<pubDate>Mon, 14 Apr 2008 16:40:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-35062</guid>
		<description><![CDATA[You&#039;re right.

Thank You for your patience.]]></description>
		<content:encoded><![CDATA[<p>You&#8217;re right.</p>
<p>Thank You for your patience.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-34254</link>
		<dc:creator><![CDATA[Tony]]></dc:creator>
		<pubDate>Tue, 11 Mar 2008 15:16:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-34254</guid>
		<description><![CDATA[Jorge,

All your examples work just fine.  Try these examples:

SELECT LEN(SPACE(5-3));
SELECT LEN(SPACE(5-3) + &#039;X&#039;);
SELECT DATALENGTH(SPACE(5-3));
SELECT DATALENGTH(SPACE(5-3) + &#039;X&#039;);

If you  lookup the LEN function you will see that it states these two things:

Returns the number of characters of the specified string expression, excluding trailing blanks.

To return the number of bytes used to represent an expression, use the DATALENGTH function.

This is obviously a case of RTM.]]></description>
		<content:encoded><![CDATA[<p>Jorge,</p>
<p>All your examples work just fine.  Try these examples:</p>
<p>SELECT LEN(SPACE(5-3));<br />
SELECT LEN(SPACE(5-3) + &#8216;X&#8217;);<br />
SELECT DATALENGTH(SPACE(5-3));<br />
SELECT DATALENGTH(SPACE(5-3) + &#8216;X&#8217;);</p>
<p>If you  lookup the LEN function you will see that it states these two things:</p>
<p>Returns the number of characters of the specified string expression, excluding trailing blanks.</p>
<p>To return the number of bytes used to represent an expression, use the DATALENGTH function.</p>
<p>This is obviously a case of RTM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge</title>
		<link>http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-33854</link>
		<dc:creator><![CDATA[Jorge]]></dc:creator>
		<pubDate>Wed, 20 Feb 2008 12:16:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-33854</guid>
		<description><![CDATA[What a wonderfull workaroud that is... why other DB makers didnt do it that way ?????

Did you know that in MS Access, space(5-3) works as expected ?

Still... This is a bug (a naive one), no matter what &#039;a&#039;, &#039;b&#039; or &#039;c&#039; is appended to the end, appending a space, doesnt work again...]]></description>
		<content:encoded><![CDATA[<p>What a wonderfull workaroud that is&#8230; why other DB makers didnt do it that way ?????</p>
<p>Did you know that in MS Access, space(5-3) works as expected ?</p>
<p>Still&#8230; This is a bug (a naive one), no matter what &#8216;a&#8217;, &#8216;b&#8217; or &#8216;c&#8217; is appended to the end, appending a space, doesnt work again&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-33779</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 15 Feb 2008 12:44:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-33779</guid>
		<description><![CDATA[Jorge,

FYI, it works well

select space(5-3)+&#039;a&#039;

DECLARE @spc as int
SET @spc = 5
SELECT space(@spc)+&#039;a&#039;]]></description>
		<content:encoded><![CDATA[<p>Jorge,</p>
<p>FYI, it works well</p>
<p>select space(5-3)+&#8217;a&#8217;</p>
<p>DECLARE @spc as int<br />
SET @spc = 5<br />
SELECT space(@spc)+&#8217;a&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge</title>
		<link>http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-33410</link>
		<dc:creator><![CDATA[Jorge]]></dc:creator>
		<pubDate>Fri, 01 Feb 2008 12:05:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-33410</guid>
		<description><![CDATA[its sad that this doesnt work:

space(5-3)

this returns a string with no spaces :(

SELECT LEN(space(5-3))  -&gt; 0

neither this works:

DECLARE @spc as int
SET @spc = 5
SELECT space(@spc)

You want SQL Server to be taken seriously ????????????????]]></description>
		<content:encoded><![CDATA[<p>its sad that this doesnt work:</p>
<p>space(5-3)</p>
<p>this returns a string with no spaces :(</p>
<p>SELECT LEN(space(5-3))  -&gt; 0</p>
<p>neither this works:</p>
<p>DECLARE @spc as int<br />
SET @spc = 5<br />
SELECT space(@spc)</p>
<p>You want SQL Server to be taken seriously ????????????????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Johnson</title>
		<link>http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-11501</link>
		<dc:creator><![CDATA[Mark Johnson]]></dc:creator>
		<pubDate>Thu, 06 Sep 2007 23:40:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-11501</guid>
		<description><![CDATA[Yes very good tip]]></description>
		<content:encoded><![CDATA[<p>Yes very good tip</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carmelo Lisciotto</title>
		<link>http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-5526</link>
		<dc:creator><![CDATA[Carmelo Lisciotto]]></dc:creator>
		<pubDate>Thu, 19 Jul 2007 17:40:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/19/sql-server-space-function-example/#comment-5526</guid>
		<description><![CDATA[Good tip!

Carmelo Lisciotto]]></description>
		<content:encoded><![CDATA[<p>Good tip!</p>
<p>Carmelo Lisciotto</p>
]]></content:encoded>
	</item>
</channel>
</rss>

