 




<?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/"
		>
<channel>
	<title>Comments on: Recursive SQL error</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/recursive-sql-error/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/recursive-sql-error/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 09:57:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/recursive-sql-error/#comment-116255</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Thu, 14 Feb 2013 03:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/recursive-sql-error/#comment-116255</guid>
		<description><![CDATA[Yeah, it&#039;s tricky when reviewing questions that are updated. I&#039;m also not sure where the UPDATE line in the&#160;[code][/code] came from. Very possibly, it was a line that I failed to replace when I pasted into a temporary Notepad doc I was using.
&#160;
But if &quot;SQL statement not allowed&quot; was original error text, then the &#039;Answer&#039; is almost certainly correct. A SELECT statement is not meaningful as a RUNSQLSTM statement.
&#160;
Tom]]></description>
		<content:encoded><![CDATA[<p>Yeah, it&#8217;s tricky when reviewing questions that are updated. I&#8217;m also not sure where the UPDATE line in the&nbsp; came from. Very possibly, it was a line that I failed to replace when I pasted into a temporary Notepad doc I was using.<br />
&nbsp;<br />
But if &#8220;SQL statement not allowed&#8221; was original error text, then the &#8216;Answer&#8217; is almost certainly correct. A SELECT statement is not meaningful as a RUNSQLSTM statement.<br />
&nbsp;<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/recursive-sql-error/#comment-116200</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Wed, 13 Feb 2013 22:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/recursive-sql-error/#comment-116200</guid>
		<description><![CDATA[But that update doesn&#039;t make much sense (at least to me), unless it is a separate statement.&#160; Could it be that Tom was testing something else, and included that line here by mistake? (not likely,&#160;I know).]]></description>
		<content:encoded><![CDATA[<p>But that update doesn&#8217;t make much sense (at least to me), unless it is a separate statement.&nbsp; Could it be that Tom was testing something else, and included that line here by mistake? (not likely,&nbsp;I know).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/recursive-sql-error/#comment-116195</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Wed, 13 Feb 2013 18:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/recursive-sql-error/#comment-116195</guid>
		<description><![CDATA[Right I&#160;listed the SQL code as it appeared originally .. at that time it included an error statement but no&#160;&#160; 
UPDATE TSTSQL/TSTTBL SET NAMECOL = ‘THIRD’ WHERE IDCOL = 3 
Edited twice is suspect .. once adding the update and subsequently removing it.
&#160;
&#160;]]></description>
		<content:encoded><![CDATA[<p>Right I&nbsp;listed the SQL code as it appeared originally .. at that time it included an error statement but no&nbsp;&nbsp;<br />
UPDATE TSTSQL/TSTTBL SET NAMECOL = ‘THIRD’ WHERE IDCOL = 3<br />
Edited twice is suspect .. once adding the update and subsequently removing it.<br />
&nbsp;<br />
&nbsp;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/recursive-sql-error/#comment-116181</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Wed, 13 Feb 2013 15:09:43 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/recursive-sql-error/#comment-116181</guid>
		<description><![CDATA[Tom, what I don&#039;t know is where you saw that it was an update ;-)&#160;

It seems that the question has been editted since I first saw it.&#160; Originally it included an error message.]]></description>
		<content:encoded><![CDATA[<p>Tom, what I don&#8217;t know is where you saw that it was an update <img src='http://itknowledgeexchange.techtarget.com/itanswers/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> &nbsp;</p>
<p>It seems that the question has been editted since I first saw it.&nbsp; Originally it included an error message.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/recursive-sql-error/#comment-116151</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Wed, 13 Feb 2013 00:23:22 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/recursive-sql-error/#comment-116151</guid>
		<description><![CDATA[And it&#039;s also not clear why the editor often inserts &lt;BR&gt; tags in code but the tags don&#039;t get rendered when shown in browsers; but that&#039;s separate from the actual &#039;Question&#039;. -- Tom]]></description>
		<content:encoded><![CDATA[<p>And it&#8217;s also not clear why the editor often inserts &lt;BR&gt; tags in code but the tags don&#8217;t get rendered when shown in browsers; but that&#8217;s separate from the actual &#8216;Question&#8217;. &#8212; Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/recursive-sql-error/#comment-116150</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Wed, 13 Feb 2013 00:19:24 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/recursive-sql-error/#comment-116150</guid>
		<description><![CDATA[Actual SQL appears to look this way (and I hope formatting works):&lt;PRE&gt;UPDATE TSTSQL/TSTTBL SET NAMECOL = &#039;THIRD&#039; WHERE IDCOL = 3
 WITH RPL (LEVEL, PINBR, CINBR, QTYPR) AS
      (SELECT 1, ROOT.PINBR, ROOT.CINBR, ROOT.QTYPR
              FROM ITSTRU ROOT
              WHERE ROOT.PINBR = &#039;8B714-0005651&#039;
       UNION ALL
             SELECT PARENT.LEVEL+1, CHILD.PINBR, CHILD.CINBR, CHILD.QTYPR
               FROM RPL PARENT, ITSTRU CHILD
             WHERE PARENT.CINBR = CHILD.PINBR
                AND PARENT.LEVEL &lt; 2
      )
 SELECT PINBR, LEVEL, CINBR, QTYPR
        FROM RPL;&lt;/PRE&gt;
But I&#039;m not clear on a couple things. First thing that I don&#039;t see is how carlosdl knew what the error message was. I don&#039;t see any mention of an error message, only that some problem exists.
&#160;
Next, I can see why RUNSQLSTM would be a possibility; but it could also be a QM query. With no explanation of what is being attempted nor what any problem is, it&#039;s impossible to say much.
&#160;
Tom]]></description>
		<content:encoded><![CDATA[<p>Actual SQL appears to look this way (and I hope formatting works):
<pre>UPDATE TSTSQL/TSTTBL SET NAMECOL = &#8216;THIRD&#8217; WHERE IDCOL = 3
 WITH RPL (LEVEL, PINBR, CINBR, QTYPR) AS
      (SELECT 1, ROOT.PINBR, ROOT.CINBR, ROOT.QTYPR
              FROM ITSTRU ROOT
              WHERE ROOT.PINBR = &#8217;8B714-0005651&#8242;
       UNION ALL
             SELECT PARENT.LEVEL+1, CHILD.PINBR, CHILD.CINBR, CHILD.QTYPR
               FROM RPL PARENT, ITSTRU CHILD
             WHERE PARENT.CINBR = CHILD.PINBR
                AND PARENT.LEVEL &lt; 2
      )
 SELECT PINBR, LEVEL, CINBR, QTYPR
        FROM RPL;</pre>
<p>But I&#8217;m not clear on a couple things. First thing that I don&#8217;t see is how carlosdl knew what the error message was. I don&#8217;t see any mention of an error message, only that some problem exists.<br />
&nbsp;<br />
Next, I can see why RUNSQLSTM would be a possibility; but it could also be a QM query. With no explanation of what is being attempted nor what any problem is, it&#8217;s impossible to say much.<br />
&nbsp;<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/recursive-sql-error/#comment-116146</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Tue, 12 Feb 2013 22:45:59 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/recursive-sql-error/#comment-116146</guid>
		<description><![CDATA[I think this is&#160;the SQL but that&#039;s as far as I can go.&#160;&lt;pre&gt;WITH RPL (LEVEL, PINBR, CINBR, QTYPR) AS 

(SELECT 1, ROOT.PINBR, ROOT.CINBR, ROOT.QTYPR 
FROM ITSTRU ROOT 
WHERE ROOT.PINBR = &#039;8B714-0005651&#039; 

UNION ALL 

SELECT PARENT.LEVEL+1, CHILD.PINBR, CHILD.CINBR, CHILD.QTYPR 
FROM RPL PARENT, ITSTRU CHILD 
WHERE PARENT.CINBR = CHILD.PINBR 
AND PARENT.LEVEL &lt; 2 ) 

SELECT PINBR, LEVEL, CINBR, QTYPR FROM RPL; &lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>I think this is&nbsp;the SQL but that&#8217;s as far as I can go.&nbsp;
<pre>WITH RPL (LEVEL, PINBR, CINBR, QTYPR) AS 

(SELECT 1, ROOT.PINBR, ROOT.CINBR, ROOT.QTYPR 
FROM ITSTRU ROOT 
WHERE ROOT.PINBR = '8B714-0005651' 

UNION ALL 

SELECT PARENT.LEVEL+1, CHILD.PINBR, CHILD.CINBR, CHILD.QTYPR 
FROM RPL PARENT, ITSTRU CHILD 
WHERE PARENT.CINBR = CHILD.PINBR 
AND PARENT.LEVEL &lt; 2 ) 

SELECT PINBR, LEVEL, CINBR, QTYPR FROM RPL; </pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/recursive-sql-error/#comment-116144</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Tue, 12 Feb 2013 21:36:24 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/recursive-sql-error/#comment-116144</guid>
		<description><![CDATA[Not sure who the author of the above answer is, but the answer makes sense, since the error message reads &quot;SQL statement not allowed&quot;.

Additionally, I&#039;m not sure if the OP is intending to use the word LEVEL as a reserved word.&#160; If that is the case, that could be a problem, as AFAIK the LEVEL keyword is only allowed on hierarchical queries, which as far as I remember must include the CONNECT BY clause.&#160; (I might not remember well. though)]]></description>
		<content:encoded><![CDATA[<p>Not sure who the author of the above answer is, but the answer makes sense, since the error message reads &#8220;SQL statement not allowed&#8221;.</p>
<p>Additionally, I&#8217;m not sure if the OP is intending to use the word LEVEL as a reserved word.&nbsp; If that is the case, that could be a problem, as AFAIK the LEVEL keyword is only allowed on hierarchical queries, which as far as I remember must include the CONNECT BY clause.&nbsp; (I might not remember well. though)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.040 seconds using memcached
Object Caching 369/375 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 09:59:55 -->