<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Tech Off - Good SQL Fizz Buzz</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Tech Off - Good SQL Fizz Buzz</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Sat, 25 May 2013 12:57:52 GMT</pubDate>
	<lastBuildDate>Sat, 25 May 2013 12:57:52 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>17</c9:totalResults>
	<c9:pageCount>-17</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - Good SQL Fizz Buzz</title>
		<description><![CDATA[<p>Slight Rewrite (developed it over a coffee break):<br /><br />--Given <br /><br />Declare @OldNode&nbsp;Varchar(5)<br />Select @OldNode&nbsp;= '90909'<br /><br />Declare @OldPath&nbsp; varchar(1000)<br />Select @OldPath = '//90012/90909/90000'<br /><br />--and<br />--if(Len(@OldNode) = 5) -- This will always return true<br /><br />/*<br /><br />Using TSQL:<br /><br />1)Assign the value of '90606' to a new variable called NewNode.<br />2)Using OldNode and OldPath replace the&nbsp;instance of OldNode in OldPath with the value of&nbsp;NewNode and assign the result to a new variable called NewPath. Print the results to Messages.&nbsp;<br /><br />*/</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/258449#258449</link>
		<pubDate>Tue, 23 Oct 2007 17:54:51 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/258449#258449</guid>
		<dc:creator>odujosh</dc:creator>
		<slash:comments>17</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/odujosh/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Good SQL Fizz Buzz</title>
		<description><![CDATA[<p>Thats the bonus question <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-5.gif' alt='Wink' /> I did a slight rewrite to clarify the question.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/8f5e81c27aa5448195ae9df901036e85#8f5e81c27aa5448195ae9df901036e85</link>
		<pubDate>Tue, 23 Oct 2007 17:54:51 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/8f5e81c27aa5448195ae9df901036e85#8f5e81c27aa5448195ae9df901036e85</guid>
		<dc:creator>odujosh</dc:creator>
		<slash:comments>17</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/odujosh/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Good SQL Fizz Buzz</title>
		<description><![CDATA[<p>And if you get asked what '--' you can save yourself all kinds of time interviewing someone.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/f7342603cba64ba2a6959df90103756c#f7342603cba64ba2a6959df90103756c</link>
		<pubDate>Tue, 23 Oct 2007 17:58:52 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/f7342603cba64ba2a6959df90103756c#f7342603cba64ba2a6959df90103756c</guid>
		<dc:creator>odujosh</dc:creator>
		<slash:comments>17</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/odujosh/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Good SQL Fizz Buzz</title>
		<description><![CDATA[<p>Well, if the candidate understood TSQL comments, would the next part be identify the mission closing quotation? <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /><br /><br />I remember reading Atwoods <a href="http://www.codinghorror.com/blog/archives/000781.html">
article</a> and thinking to myself (after knowing how I would do it in C#) how would I ask that question and answer it in TSQL?<br /><br />The answers others posted online after that were very interesting! I had to admit if I had been interviewed on the spot with that question I could not have been as creative in TSQL as many others were.<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/fc27f5df358e4610a4999df9010375ee#fc27f5df358e4610a4999df9010375ee</link>
		<pubDate>Tue, 23 Oct 2007 18:46:19 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/fc27f5df358e4610a4999df9010375ee#fc27f5df358e4610a4999df9010375ee</guid>
		<dc:creator>JohnnyAwesome</dc:creator>
		<slash:comments>17</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/JohnnyAwesome/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Good SQL Fizz Buzz</title>
		<description><![CDATA[<p>Sadly, I had to look up the syntax for replace and I'm assuming that you mean using the print function when you refer to messages?&nbsp; Or are you talking about raiseerror.<br /><br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/ca616f8b9d884a6889759df901036f0a#ca616f8b9d884a6889759df901036f0a</link>
		<pubDate>Tue, 23 Oct 2007 20:04:27 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/ca616f8b9d884a6889759df901036f0a#ca616f8b9d884a6889759df901036f0a</guid>
		<dc:creator>ScanIAm</dc:creator>
		<slash:comments>17</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/ScanIAm/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Good SQL Fizz Buzz</title>
		<description><![CDATA[<p><blockquote>
<div class="quoteAuthor">odujosh wrote:</div>
<div class="quoteBody">&#65279;Declare @OldNode = '90909'</div>
</blockquote>
<br />Is this even valid TSQL syntax?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/4c73fed03974435cbaa49df901036f8e#4c73fed03974435cbaa49df901036f8e</link>
		<pubDate>Tue, 23 Oct 2007 21:05:38 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/4c73fed03974435cbaa49df901036f8e#4c73fed03974435cbaa49df901036f8e</guid>
		<dc:creator>JChung2006</dc:creator>
		<slash:comments>17</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/JChung2006/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Good SQL Fizz Buzz</title>
		<description><![CDATA[<p><blockquote>
<div class="quoteAuthor">JChung2006 wrote:</div>
<div class="quoteBody">&#65279;
<blockquote>
<table class="quoteTable">
<tbody>
<tr>
<td valign="top" width="10"><img src="/Themes/AlmostGlass/images/icon-quote.gif"></td>
<td class="txt3"><strong>odujosh wrote:</strong>
<hr size="1">
<i>&#65279;Declare @OldNode = '90909'</i></td>
</tr>
</tbody>
</table>
</blockquote>
<br />Is this even valid TSQL syntax?</div>
</blockquote>
<br /><br />Lazyness fixed sorry. Wish TSQL was smarter <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/0c2372b6ff774e4b82c19df901037016#0c2372b6ff774e4b82c19df901037016</link>
		<pubDate>Tue, 23 Oct 2007 21:09:32 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/0c2372b6ff774e4b82c19df901037016#0c2372b6ff774e4b82c19df901037016</guid>
		<dc:creator>odujosh</dc:creator>
		<slash:comments>17</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/odujosh/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Good SQL Fizz Buzz</title>
		<description><![CDATA[<p><blockquote>
<div class="quoteAuthor">ScanIAm wrote:</div>
<div class="quoteBody">&#65279;Sadly, I had to look up the syntax for replace and I'm assuming that you mean using the print function when you refer to messages?&nbsp; Or are you talking about raiseerror.<br /><br /></div>
</blockquote>
<br /><br /><br />Hint: Requires Left, Right, LEN,&nbsp;and PatIndex You could also write it with Substring if you enjoy pain or are more comfi.<br /><br />I would accept Print or Select. Really knowing the differences is trivial. Seeing whether you can think through the problem is more interesting.
<br /><br />'You' being sample candidate.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/a2ec80fa51214afba64b9df90103709b#a2ec80fa51214afba64b9df90103709b</link>
		<pubDate>Tue, 23 Oct 2007 21:12:04 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/a2ec80fa51214afba64b9df90103709b#a2ec80fa51214afba64b9df90103709b</guid>
		<dc:creator>odujosh</dc:creator>
		<slash:comments>17</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/odujosh/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Good SQL Fizz Buzz</title>
		<description><![CDATA[<p>Just write a SQL-CLR function and call that <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/c78d84c9cc944092b4879df90103711e#c78d84c9cc944092b4879df90103711e</link>
		<pubDate>Tue, 23 Oct 2007 22:34:48 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/c78d84c9cc944092b4879df90103711e#c78d84c9cc944092b4879df90103711e</guid>
		<dc:creator>PerfectPhase</dc:creator>
		<slash:comments>17</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/PerfectPhase/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Good SQL Fizz Buzz</title>
		<description><![CDATA[<p><blockquote>
<div class="quoteAuthor">PerfectPhase wrote:</div>
<div class="quoteBody">&#65279;Just write a SQL-CLR function and call that <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /></div>
</blockquote>
<br /><br />Hahahaha. Certainly that would be the best choice in the present day.<br /><br />People forget about fundamentals and what it was like walking uphill both ways to school. They other day I was talking with a friend about a UDF I had dropped into a database for an old client that performed a RegEx search pretty similar to Ken Henderson's
 sample <a href="http://blogs.msdn.com/khen1234/archive/2005/05/11/416392.aspx">here</a> and he was baffled by my approach.<br /><br />I forgot to add it was SQL Server 2000 base being accessed by a classic ASP request. I thought I read an article this week or last (I want to say it was by Rob Conery) about how we are now at a point where a lot of people only know .NET already. The concept
 and clunkiness of old school approaches are now foreign. I think that is good and bad, personally.
<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/45a1a69c3cf944b4a9fa9df9010371a5#45a1a69c3cf944b4a9fa9df9010371a5</link>
		<pubDate>Tue, 23 Oct 2007 22:52:42 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/45a1a69c3cf944b4a9fa9df9010371a5#45a1a69c3cf944b4a9fa9df9010371a5</guid>
		<dc:creator>JohnnyAwesome</dc:creator>
		<slash:comments>17</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/JohnnyAwesome/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Good SQL Fizz Buzz</title>
		<description><![CDATA[<p><blockquote>
<div class="quoteAuthor">PerfectPhase wrote:</div>
<div class="quoteBody">&#65279;Just write a SQL-CLR function and call that <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /></div>
</blockquote>
<br /><br />Start a why use something you don't need argument here.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/53dd3f0493b4407cb9b49df901037223#53dd3f0493b4407cb9b49df901037223</link>
		<pubDate>Wed, 24 Oct 2007 16:53:07 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/53dd3f0493b4407cb9b49df901037223#53dd3f0493b4407cb9b49df901037223</guid>
		<dc:creator>odujosh</dc:creator>
		<slash:comments>17</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/odujosh/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Good SQL Fizz Buzz</title>
		<description><![CDATA[<p><blockquote>
<div class="quoteAuthor">PerfectPhase wrote:</div>
<div class="quoteBody">&#65279;Just write a SQL-CLR function and call that <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /></div>
</blockquote>
<br />Congratulations!&nbsp; You've turned a simple code problem into a deployment headache?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/c06afc734ede48baaed89df90103729b#c06afc734ede48baaed89df90103729b</link>
		<pubDate>Wed, 24 Oct 2007 17:01:23 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/c06afc734ede48baaed89df90103729b#c06afc734ede48baaed89df90103729b</guid>
		<dc:creator>JChung2006</dc:creator>
		<slash:comments>17</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/JChung2006/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Good SQL Fizz Buzz</title>
		<description><![CDATA[<p>Gee, a nice sample. But the&nbsp;list of tasks should actually be<br />&nbsp;<br />* find a flaw in the materialized path persistence design (based on&nbsp;the four lines of code above)<br />* propose a fix<br />* write a piece of code to replace node A with node B and reparent node A's children<br />* and yeah, print whatever the result is</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/d756b4693f9145d3a7949df901037307#d756b4693f9145d3a7949df901037307</link>
		<pubDate>Wed, 24 Oct 2007 18:14:34 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/d756b4693f9145d3a7949df901037307#d756b4693f9145d3a7949df901037307</guid>
		<dc:creator>sokhaty</dc:creator>
		<slash:comments>17</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/sokhaty/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Good SQL Fizz Buzz</title>
		<description><![CDATA[<p><blockquote>
<div class="quoteAuthor">odujosh wrote:</div>
<div class="quoteBody">&#65279;
<blockquote>
<table class="quoteTable">
<tbody>
<tr>
<td valign="top" width="10"><img src="/Themes/AlmostGlass/images/icon-quote.gif"></td>
<td class="txt3"><strong>ScanIAm wrote:</strong>
<hr size="1">
<i>&#65279;Sadly, I had to look up the syntax for replace and I'm assuming that you mean using the print function when you refer to messages?&nbsp; Or are you talking about raiseerror.<br /><br /></i></td>
</tr>
</tbody>
</table>
</blockquote>
<br /><br /><br />Hint: Requires Left, Right, LEN,&nbsp;and PatIndex You could also write it with Substring if you enjoy pain or are more comfi.<br /><br />I would accept Print or Select. Really knowing the differences is trivial. Seeing whether you can think through the problem is more interesting.
<br /><br />'You' being sample candidate.</div>
</blockquote>
<br /><br />I'm not sure if you changed the criteria, but once you declare the missing variables and load them up,&nbsp;the replacement requires 1 line of code:<br /><br />Select @NewPath = REPLACE(@OldPath, @OldNode, @NewNode)<br /><br />Am I missing something?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/2ae952933d8f419aa8539df90103738c#2ae952933d8f419aa8539df90103738c</link>
		<pubDate>Wed, 24 Oct 2007 20:14:47 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/2ae952933d8f419aa8539df90103738c#2ae952933d8f419aa8539df90103738c</guid>
		<dc:creator>ScanIAm</dc:creator>
		<slash:comments>17</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/ScanIAm/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Good SQL Fizz Buzz</title>
		<description><![CDATA[<p><blockquote>
<div class="quoteAuthor">ScanIAm wrote:</div>
<div class="quoteBody">&#65279;
<blockquote>
<table class="quoteTable">
<tbody>
<tr>
<td valign="top" width="10"><img src="/Themes/AlmostGlass/images/icon-quote.gif"></td>
<td class="txt3"><strong>odujosh wrote:</strong>
<hr size="1">
<i>&#65279;
<blockquote>
<table class="quoteTable">
<tbody>
<tr>
<td valign="top" width="10"><img src="/Themes/AlmostGlass/images/icon-quote.gif"></td>
<td class="txt3"><strong>ScanIAm wrote:</strong>
<hr size="1">
<i>&#65279;Sadly, I had to look up the syntax for replace and I'm assuming that you mean using the print function when you refer to messages?&nbsp; Or are you talking about raiseerror.<br /><br /></i></td>
</tr>
</tbody>
</table>
</blockquote>
<br /><br /><br />Hint: Requires Left, Right, LEN,&nbsp;and PatIndex You could also write it with Substring if you enjoy pain or are more comfi.<br /><br />I would accept Print or Select. Really knowing the differences is trivial. Seeing whether you can think through the problem is more interesting.
<br /><br />'You' being sample candidate.</i></td>
</tr>
</tbody>
</table>
</blockquote>
<br /><br />I'm not sure if you changed the criteria, but once you declare the missing variables and load them up,&nbsp;the replacement requires 1 line of code:<br /><br />Select @NewPath = REPLACE(@OldPath, @OldNode, @NewNode)<br /><br />Am I missing something?</div>
</blockquote>
<br /><br />Definitely you are, try the case with OldPath set to &quot;//4789237/90909/9090901/909092&quot;<br />and see what happens.<br />But the point is that the original design is suboptimal (which can be considered flawed).</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/3b77b8caa7ca41b8950b9df9010373dc#3b77b8caa7ca41b8950b9df9010373dc</link>
		<pubDate>Wed, 24 Oct 2007 20:31:28 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/3b77b8caa7ca41b8950b9df9010373dc#3b77b8caa7ca41b8950b9df9010373dc</guid>
		<dc:creator>sokhaty</dc:creator>
		<slash:comments>17</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/sokhaty/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Good SQL Fizz Buzz</title>
		<description><![CDATA[<p><blockquote>
<div class="quoteAuthor">ScanIAm wrote:</div>
<div class="quoteBody">&#65279;
<blockquote>
<table class="quoteTable">
<tbody>
<tr>
<td valign="top" width="10"><img src="/Themes/AlmostGlass/images/icon-quote.gif"></td>
<td class="txt3"><strong>odujosh wrote:</strong>
<hr size="1">
<i>&#65279;
<blockquote>
<table class="quoteTable">
<tbody>
<tr>
<td valign="top" width="10"><img src="/Themes/AlmostGlass/images/icon-quote.gif"></td>
<td class="txt3"><strong>ScanIAm wrote:</strong>
<hr size="1">
<i>&#65279;Sadly, I had to look up the syntax for replace and I'm assuming that you mean using the print function when you refer to messages?&nbsp; Or are you talking about raiseerror.<br /><br /></i></td>
</tr>
</tbody>
</table>
</blockquote>
<br /><br /><br />Hint: Requires Left, Right, LEN,&nbsp;and PatIndex You could also write it with Substring if you enjoy pain or are more comfi.<br /><br />I would accept Print or Select. Really knowing the differences is trivial. Seeing whether you can think through the problem is more interesting.
<br /><br />'You' being sample candidate.</i></td>
</tr>
</tbody>
</table>
</blockquote>
<br /><br />I'm not sure if you changed the criteria, but once you declare the missing variables and load them up,&nbsp;the replacement requires 1 line of code:<br /><br />Select @NewPath = REPLACE(@OldPath, @OldNode, @NewNode)<br /><br />Am I missing something?</div>
</blockquote>
<br /><br />REPLACE is not necessary. OldNode only occurs once. And ScanIAm: Length will always be 5. This limits the design to only in number of groups. The number of groups will always be under 10,000 closer to in the hundreds. Its not flawed the designer realizes the
 limitation.<br /><br />Though you do show why fixed length is a benifit.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/dce3840820c1404ca9a89df901037469#dce3840820c1404ca9a89df901037469</link>
		<pubDate>Wed, 24 Oct 2007 20:40:44 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/dce3840820c1404ca9a89df901037469#dce3840820c1404ca9a89df901037469</guid>
		<dc:creator>odujosh</dc:creator>
		<slash:comments>17</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/odujosh/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Good SQL Fizz Buzz</title>
		<description><![CDATA[<p><blockquote>
<div class="quoteAuthor">JChung2006 wrote:</div>
<div class="quoteBody">&#65279;
<blockquote>
<table class="quoteTable">
<tbody>
<tr>
<td valign="top" width="10"><img src="/Themes/AlmostGlass/images/icon-quote.gif"></td>
<td class="txt3"><strong>PerfectPhase wrote:</strong>
<hr size="1">
<i>&#65279;Just write a SQL-CLR function and call that <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /></i></td>
</tr>
</tbody>
</table>
</blockquote>
<br />Congratulations!&nbsp; You've turned a simple code problem into a deployment headache?</div>
</blockquote>
<br /><br />What?&nbsp; It's just another bit of SQL to deploy it and <strong><em>if</em></strong> your using the CLR already, why not.&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/bbfc9d90f0774d5ab0539df9010374f1#bbfc9d90f0774d5ab0539df9010374f1</link>
		<pubDate>Wed, 24 Oct 2007 22:27:46 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/258449-Good-SQL-Fizz-Buzz/bbfc9d90f0774d5ab0539df9010374f1#bbfc9d90f0774d5ab0539df9010374f1</guid>
		<dc:creator>PerfectPhase</dc:creator>
		<slash:comments>17</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/PerfectPhase/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>