<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Using CFQuery for executing stored procedure</title>
	<link>http://www.cfdesignpatterns.com/observation/using-cfquery-for-executing-stored-procedure/</link>
	<description>Using Design Patterns in Coldfusion Programming</description>
	<pubDate>Thu, 11 Mar 2010 12:28:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Pal</title>
		<link>http://www.cfdesignpatterns.com/observation/using-cfquery-for-executing-stored-procedure/#comment-8075</link>
		<dc:creator>Pal</dc:creator>
		<pubDate>Fri, 19 Jun 2009 21:41:33 +0000</pubDate>
		<guid>http://www.cfdesignpatterns.com/observation/using-cfquery-for-executing-stored-procedure/#comment-8075</guid>
		<description>I apologize as I made a wrong assumption that the article was pushing in-line SQL as opposed to stored procs, my bad; I had not had a second cup of coffee.  I misunderstood the context and retract my compaint above. Thanks for the contribution.</description>
		<content:encoded><![CDATA[<p>I apologize as I made a wrong assumption that the article was pushing in-line SQL as opposed to stored procs, my bad; I had not had a second cup of coffee.  I misunderstood the context and retract my compaint above. Thanks for the contribution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pal</title>
		<link>http://www.cfdesignpatterns.com/observation/using-cfquery-for-executing-stored-procedure/#comment-8042</link>
		<dc:creator>Pal</dc:creator>
		<pubDate>Fri, 19 Jun 2009 03:02:37 +0000</pubDate>
		<guid>http://www.cfdesignpatterns.com/observation/using-cfquery-for-executing-stored-procedure/#comment-8042</guid>
		<description>I personally can't quite figure out what I like about the approach.  I like many who have used CF for many years have had to produce code with inline sql and stored procedures and I just cannot agree with this approach.  I am sure there are scenarios where this approach in desired but that does not make the approach a recommended methodology for building sites.  Stored Procs provide a multitude of benefits which are not address in this article and these benefits far outway the single option of using timeouts.   Stored procs which are runaway or taking too long are not the fault of the database they are the fault of the people who run the infrastructure and/or the programmers who designed the system.    A fancy error screen 'saying come back later' is not a solution. Store Procs are nearly always better for all reasons IMHO.</description>
		<content:encoded><![CDATA[<p>I personally can&#8217;t quite figure out what I like about the approach.  I like many who have used CF for many years have had to produce code with inline sql and stored procedures and I just cannot agree with this approach.  I am sure there are scenarios where this approach in desired but that does not make the approach a recommended methodology for building sites.  Stored Procs provide a multitude of benefits which are not address in this article and these benefits far outway the single option of using timeouts.   Stored procs which are runaway or taking too long are not the fault of the database they are the fault of the people who run the infrastructure and/or the programmers who designed the system.    A fancy error screen &#8217;saying come back later&#8217; is not a solution. Store Procs are nearly always better for all reasons IMHO.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stduseren</title>
		<link>http://www.cfdesignpatterns.com/observation/using-cfquery-for-executing-stored-procedure/#comment-7800</link>
		<dc:creator>stduseren</dc:creator>
		<pubDate>Sat, 13 Jun 2009 06:37:54 +0000</pubDate>
		<guid>http://www.cfdesignpatterns.com/observation/using-cfquery-for-executing-stored-procedure/#comment-7800</guid>
		<description>Well first i would recommend not using 20000 *
since * will select all the columns and you may not need them all , that is just going to make whatever you are doing extremely slow not at the sql part, but when cf loops trough each result to present it on its cfquery alocation. 

the other thing that may be happening is a timeout of the overall page giving up just because coldfusion is taking a long time parsing all those columns and rows.

when you say 3000s if you ment seconds that is 3000/60 that is 50 minutes. Yes it could happen but that would mean that somewhere in your code you have specified a timeout setting of greater than 50 minutes wich is not really recommended.

Any ways may I ask why do you need so many rows at once? 20,000 I never do this ever ever...
 are you using a query of queries to then narrow down the numbers? or using coldfusion to perform calculations based on those results if so I will once again recommend learning better SQL and not using cf to run calculations based on sql results its just not efficient, nor elegant.</description>
		<content:encoded><![CDATA[<p>Well first i would recommend not using 20000 *<br />
since * will select all the columns and you may not need them all , that is just going to make whatever you are doing extremely slow not at the sql part, but when cf loops trough each result to present it on its cfquery alocation. </p>
<p>the other thing that may be happening is a timeout of the overall page giving up just because coldfusion is taking a long time parsing all those columns and rows.</p>
<p>when you say 3000s if you ment seconds that is 3000/60 that is 50 minutes. Yes it could happen but that would mean that somewhere in your code you have specified a timeout setting of greater than 50 minutes wich is not really recommended.</p>
<p>Any ways may I ask why do you need so many rows at once? 20,000 I never do this ever ever&#8230;<br />
 are you using a query of queries to then narrow down the numbers? or using coldfusion to perform calculations based on those results if so I will once again recommend learning better SQL and not using cf to run calculations based on sql results its just not efficient, nor elegant.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sung</title>
		<link>http://www.cfdesignpatterns.com/observation/using-cfquery-for-executing-stored-procedure/#comment-5793</link>
		<dc:creator>Sung</dc:creator>
		<pubDate>Tue, 14 Apr 2009 20:21:15 +0000</pubDate>
		<guid>http://www.cfdesignpatterns.com/observation/using-cfquery-for-executing-stored-procedure/#comment-5793</guid>
		<description>I can't get the TIMEOUT parameter of CFQUERY to work for the life of me. I'm using CFMX 7.0.2 with MS SQL Server 2005. This is what I run:


select top 20000 *
from table


#cfquery.ExecutionTime#

That query outputs a number that's in the 3000s -- which should never happen, right? Since the timeout is set for 1 second (or 1000ms). Why is this happening? I thought the TIMEOUT paramter works with SQL...</description>
		<content:encoded><![CDATA[<p>I can&#8217;t get the TIMEOUT parameter of CFQUERY to work for the life of me. I&#8217;m using CFMX 7.0.2 with MS SQL Server 2005. This is what I run:</p>
<p>select top 20000 *<br />
from table</p>
<p>#cfquery.ExecutionTime#</p>
<p>That query outputs a number that&#8217;s in the 3000s &#8212; which should never happen, right? Since the timeout is set for 1 second (or 1000ms). Why is this happening? I thought the TIMEOUT paramter works with SQL&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
