<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 6 - Developing_ColdFusion_MX_Applications_with_CFML - queryDB6.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-26T07:42:16</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#28427" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#23112" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#21969" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#21914" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#21546" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#19860" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#19786" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#28427">
		<title>coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#28427</link>
		<description>Qwicker - The cfqueryparam is obviously a little more work for the coldfusion engine, but do not let that fool you into thinking that using cfqueryparam is going to be slower.  Indeed, it is possible, but is often just the opposite because of time saved by your RDBMS.  I know this is true with oracle, but YMMV with another RDBMS, so I recommend investigating this: By using cfqueryparam, subsequent queries after the first one will be sped up significantly by eliminating time used by the query optimizer.  cfqueryparam effectively puts &quot;?&quot; in the query, instead of submitting what is a unique query, in the eyes of the optimizer, so the optimizations are cached and this process can be skipped.&lt;br /&gt;&lt;br /&gt;Clearly this depends on a number of factors, but I have seen, without question, a marked improvement in overall performance with cfqueryparam.&lt;br /&gt;&lt;br /&gt;e.g. &lt;br /&gt;select 'foo' from table etc. etc.&lt;br /&gt;and &lt;br /&gt;select 'bar' from table etc. etc. run through the query optimizer twice, &lt;br /&gt;but wth cfqueryparam it will be&lt;br /&gt;select '?' from table etc. etc., once with foo and once with bar, and the latter query will not have to be processed by the query optimizer.  This is not the best example, because optimizing this query is trivial, but I hope it conveys the general idea.</description>
		<dc:creator>bizarrojack</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-02-23T08:37:56</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#23112">
		<title>coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#23112</link>
		<description>Trusting that the cfsqltypes types are based on JDBC SQL types (from the above posting), you can also get general information on most of the cfsqltypes at:&lt;br /&gt;http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/mapping.html</description>
		<dc:creator>shawnse</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-10-28T11:13:26</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#21969">
		<title>coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#21969</link>
		<description>You can find a link to a matrix that maps&lt;br&gt;cfsqltype values to DBMS-specific data types at:&lt;br&gt;http://www.mail-archive.com/cf-talk@houseoffusion.com/msg157220.html</description>
		<dc:creator>extdw_doc</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2004-10-05T10:39:17</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#21914">
		<title>coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#21914</link>
		<description>Is there a known map for DBMS-specific datatypes to cfSqlType values? Specifically, I'm wondering about date, time, and timestamp datatypes in the cfSqlType parameter against a datetime field in an MS SQL Server database. I don't suppose an answer will arrive here quickly, therefore I shall test... and post what I find. Thanks!</description>
		<dc:creator>sweetnevil</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-10-04T10:56:12</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#21546">
		<title>coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#21546</link>
		<description>i noticed that the initial query has single quotes around the value to be inserted (WHERE LastName='#Form.LastName#'). would this not prevent the sql injection from appearing as 2 queries like the value returned using the cfqueryparam tag?&lt;br /&gt;&lt;br /&gt;WHERE LastName = 'Anwar DELETE FROM MyCustomerTable'.&lt;br /&gt;&lt;br /&gt;i think i will test this theory. i am trying to decide if the cfqueryparam tag is necessary for us - i have heard that it is a significant hit on processing time.</description>
		<dc:creator>qwicker</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-09-21T09:49:22</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#19860">
		<title>coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#19860</link>
		<description>Your error is in surrounding rpt_num in quotation marks.&lt;br&gt;The correct form is&lt;br&gt;&lt;cfset name = rpt_mem&gt;&lt;br&gt;The problem is that in your example the variable name is being assigned a string value, not a reference to the query object.</description>
		<dc:creator>halL</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2004-08-10T13:03:21</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#19786">
		<title>coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/queryDB6.htm#19786</link>
		<description>I tried this and it does not work&lt;br /&gt;&lt;br /&gt;&lt;cfset name = &quot;rpt_mem&quot;&gt;&lt;br /&gt;&lt;cfset str = name.recordCount&gt;&lt;br /&gt;&lt;br /&gt; rpt_mem is a name of an existing query. But it denies it saying that coldfusion does not recognize the parameter.</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-08-09T12:56:40</dc:date>
	</item>
	</rdf:RDF>

