﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / Development  / Recursive Queries / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 07:51:53 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Recursive Queries</title><link>http://www.sqlservercentral.com/Forums/Topic809445-145-1.aspx</link><description>[quote][b]martin.edward (10/27/2009)[/b][hr]Hello,I am in the process of creating a recursive query, but have no idea on the basics i.e. recursion,looping through sql statements etc.Could some give me a drill down ?[/quote]The only time you should use recursion is for hierarchies.  The only time you should use a loop is for flow control across tables or databases... that leaves out 99.9% of all queries.Rather than learn the wrong way to do things by learning recursion and loops first, take a look at the following article for an alternative to needing most loops...[url]http://www.sqlservercentral.com/articles/T-SQL/62867/[/url]</description><pubDate>Wed, 28 Oct 2009 21:00:46 GMT</pubDate><dc:creator>Jeff Moden</dc:creator></item><item><title>RE: Recursive Queries</title><link>http://www.sqlservercentral.com/Forums/Topic809445-145-1.aspx</link><description>If you're interested in how the recursive queries work, seehttp://sqlblog.com/blogs/linchi_shea/archive/2009/04/16/recursive-sql-queries-how-do-they-work.aspx</description><pubDate>Wed, 28 Oct 2009 03:28:54 GMT</pubDate><dc:creator>dmoldovan</dc:creator></item><item><title>RE: Recursive Queries</title><link>http://www.sqlservercentral.com/Forums/Topic809445-145-1.aspx</link><description>Your question is pretty open-ended.  It would help us in helping you if you could provide more specifics regarding your problem.  Please take the time to also read the first article I reference below in my signature block regarding asking for assistance.  if you follow the instructions in that article you we get much better answers to your questions.</description><pubDate>Tue, 27 Oct 2009 11:14:34 GMT</pubDate><dc:creator>Lynn Pettis</dc:creator></item><item><title>RE: Recursive Queries</title><link>http://www.sqlservercentral.com/Forums/Topic809445-145-1.aspx</link><description>Hi,Can you give a llittle more info on exactly what it is you need a loop for?For the time being have a look at the following article (SQL Server 2005, wont work on 2000)[url]http://msdn.microsoft.com/en-us/library/ms186243.aspx[/url]</description><pubDate>Tue, 27 Oct 2009 10:45:02 GMT</pubDate><dc:creator>Lewis Dowson</dc:creator></item><item><title>Recursive Queries</title><link>http://www.sqlservercentral.com/Forums/Topic809445-145-1.aspx</link><description>Hello,I am in the process of creating a recursive query, but have no idea on the basics i.e. recursion,looping through sql statements etc.Could some give me a drill down ?</description><pubDate>Tue, 27 Oct 2009 10:17:54 GMT</pubDate><dc:creator>martin.edward</dc:creator></item></channel></rss>