<?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; UDF &#8211; Remove Duplicate Chars From String</title>
	<atom:link href="http://blog.sqlauthority.com/2007/12/05/sql-server-udf-remove-duplicate-chars-from-string/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/12/05/sql-server-udf-remove-duplicate-chars-from-string/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 23 May 2013 14:22:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #006 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2007/12/05/sql-server-udf-remove-duplicate-chars-from-string/#comment-389234</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #006 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 08 Dec 2012 01:30:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/05/sql-server-udf-remove-duplicate-chars-from-string/#comment-389234</guid>
		<description><![CDATA[[...] UDF – Remove Duplicate Chars From String This was a very interesting function I wrote in my early career. I am still using this function when I have to remove duplicate chars from strings. I have yet to come across a scenario where it does not work so I keep on using it till today. Please leave a comment if there is any better solution to this problem. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] UDF – Remove Duplicate Chars From String This was a very interesting function I wrote in my early career. I am still using this function when I have to remove duplicate chars from strings. I have yet to come across a scenario where it does not work so I keep on using it till today. Please leave a comment if there is any better solution to this problem. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - Remove Duplicate Characters From a String Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/12/05/sql-server-udf-remove-duplicate-chars-from-string/#comment-30463</link>
		<dc:creator><![CDATA[SQL SERVER - Remove Duplicate Characters From a String Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Mon, 31 Dec 2007 02:34:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/05/sql-server-udf-remove-duplicate-chars-from-string/#comment-30463</guid>
		<description><![CDATA[[...] my previous article of Remove Duplicate Chars From String here is another great article written by Madhivanan where similar solution is suggested with alternate method of Number table approach. Check out [...]]]></description>
		<content:encoded><![CDATA[<p>[...] my previous article of Remove Duplicate Chars From String here is another great article written by Madhivanan where similar solution is suggested with alternate method of Number table approach. Check out [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/12/05/sql-server-udf-remove-duplicate-chars-from-string/#comment-30021</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Sat, 29 Dec 2007 07:19:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/05/sql-server-udf-remove-duplicate-chars-from-string/#comment-30021</guid>
		<description><![CDATA[Here is non while loop approach

http://sqlblogcasts.com/blogs/madhivanan/archive/2007/12/29/remove-duplicate-characters-from-a-string.aspx]]></description>
		<content:encoded><![CDATA[<p>Here is non while loop approach</p>
<p><a href="http://sqlblogcasts.com/blogs/madhivanan/archive/2007/12/29/remove-duplicate-characters-from-a-string.aspx" rel="nofollow">http://sqlblogcasts.com/blogs/madhivanan/archive/2007/12/29/remove-duplicate-characters-from-a-string.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: srikanth</title>
		<link>http://blog.sqlauthority.com/2007/12/05/sql-server-udf-remove-duplicate-chars-from-string/#comment-25880</link>
		<dc:creator><![CDATA[srikanth]]></dc:creator>
		<pubDate>Fri, 14 Dec 2007 11:06:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/05/sql-server-udf-remove-duplicate-chars-from-string/#comment-25880</guid>
		<description><![CDATA[Hello sir,
 I am new to DB and sql server 2005, this site is very helpful,
thanks a lot.
Sir I am using this function ‘Removing duplicate chars string from one large string’,
I found that while loop (while @count&lt;=255) in this function is unnecessarily  checking the condition even after removing duplicates, what I think is, it should come out of the loop when string doesn’t contain any duplicate chars.

Like when I am calling the function:-

SET CONCAT_NULL_YIELDS_NULL   OFF
SELECT dbo.Remove_duplicate_instr(3,123456789123456456)

According to the function @count = 3 and it is checking the condition till @count = 258,
But we get the output at @count =12 for the above and it should come out of the loop at
 @count = 16.

If I am using if condition 

      if (@str = &#039;&#039;)
 break
 
After SET @count=@count+@datalen_tocheck 
Iam getting the output @count=12 and it is coming out of the loop at @count=16 . I think by this, we can avoid repeated checkings after removing duplicates.
 
Is it not a performance issue?
Just tell me sir whether I am correct or not.

thanks,
srikanth.]]></description>
		<content:encoded><![CDATA[<p>Hello sir,<br />
 I am new to DB and sql server 2005, this site is very helpful,<br />
thanks a lot.<br />
Sir I am using this function ‘Removing duplicate chars string from one large string’,<br />
I found that while loop (while @count&lt;=255) in this function is unnecessarily  checking the condition even after removing duplicates, what I think is, it should come out of the loop when string doesn’t contain any duplicate chars.</p>
<p>Like when I am calling the function:-</p>
<p>SET CONCAT_NULL_YIELDS_NULL   OFF<br />
SELECT dbo.Remove_duplicate_instr(3,123456789123456456)</p>
<p>According to the function @count = 3 and it is checking the condition till @count = 258,<br />
But we get the output at @count =12 for the above and it should come out of the loop at<br />
 @count = 16.</p>
<p>If I am using if condition </p>
<p>      if (@str = &#8221;)<br />
 break</p>
<p>After SET @count=@count+@datalen_tocheck<br />
Iam getting the output @count=12 and it is coming out of the loop at @count=16 . I think by this, we can avoid repeated checkings after removing duplicates.</p>
<p>Is it not a performance issue?<br />
Just tell me sir whether I am correct or not.</p>
<p>thanks,<br />
srikanth.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: C</title>
		<link>http://blog.sqlauthority.com/2007/12/05/sql-server-udf-remove-duplicate-chars-from-string/#comment-25250</link>
		<dc:creator><![CDATA[C]]></dc:creator>
		<pubDate>Mon, 10 Dec 2007 16:44:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/05/sql-server-udf-remove-duplicate-chars-from-string/#comment-25250</guid>
		<description><![CDATA[Hi,

Don&#039;t we need to trim any blank charactors]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Don&#8217;t we need to trim any blank charactors</p>
]]></content:encoded>
	</item>
</channel>
</rss>
