<?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.1 - htmldocs - tags-b20.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-24T20:26:55</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#73222" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#49490" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#47982" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#47201" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#39156" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#38943" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#38918" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#37959" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#37569" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#35189" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#29341" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#28997" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#24558" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#24557" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#23949" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#23926" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#23921" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#22368" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#21930" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#21606" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#20217" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#19890" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#17420" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#17401" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#17020" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#15864" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#15360" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#15305" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#12855" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#12825" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#73222">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#73222</link>
		<description>To gregorC's comment on cfqueryparam LIKE clause workaround...  that's a bit overkill.&lt;br /&gt;&lt;br /&gt;You can just do:&lt;br /&gt;&lt;br /&gt;SELECT ...&lt;br /&gt;WHERE sr.DriverName LIKE '%' + &lt;cfqueryparam cfsqltype=&quot;CF_SQL_VARCHAR&quot; value=&quot;#Arguments.DriverName#&quot; maxlength=&quot;100&quot; /&gt; + '%'&lt;br /&gt;&lt;br /&gt;CF just appends another variable declaration to yours.. so it's a bit redundant.</description>
		<dc:creator>timschot</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-09-04T13:36:20</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#49490">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#49490</link>
		<description>I've also recently experienced something in addition to the wildcard (select *) bug.  Even if you have explicitly defined your column list in your  SQL statement (stored procedure or otherwise), and append a column to that list, the use of &lt;cfqueryparam will still retrieve the old columnlist.  I'm going to guess that it's really the way that &lt;cfqueryparam uses the bind variables in certain DB's which retrieve an existing execution plan for the given query.  In this case the use of explicitly named columns still causes and error when adding a column for use in a CFQUERY resultset.</description>
		<dc:creator>heashon2000</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2006-06-07T09:39:08</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#47982">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#47982</link>
		<description>MS SQl Server 2000 mappings of data type to CFSQLTYPE:&lt;br /&gt;&lt;br /&gt;cf_sql_bigint bigint &lt;br /&gt;cf_sql_bit bit &lt;br /&gt;cf_sql_char char, nchar &lt;br /&gt;cf_sql_date [smalldatetime] &lt;br /&gt;cf_sql_decimal numeric, decimal &lt;br /&gt;cf_sql_double double, float &lt;br /&gt;cf_sql_float double, float &lt;br /&gt;cf_sql_idstamp timestamp &lt;br /&gt;cf_sql_integer int &lt;br /&gt;cf_sql_longvarchar text &lt;br /&gt;cf_sql_money money &lt;br /&gt;cf_sql_money4 smallmoney &lt;br /&gt;cf_sql_numeric numeric, decimal &lt;br /&gt;cf_sql_real real &lt;br /&gt;cf_sql_refcursor cursor &lt;br /&gt;cf_sql_smallint smallint &lt;br /&gt;cf_sql_time &lt;br /&gt;cf_sql_timestamp datetime &lt;br /&gt;cf_sql_tinyint tinyint &lt;br /&gt;cf_sql_varchar varchar, nvarchar,uniqueidentifier &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This can be useful for people who are confused with DATETIME and etc...</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2006-04-26T08:38:29</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#47201">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#47201</link>
		<description>LIKE Workaround for CFQueryParam&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;DECLARE @tempDriverName varchar(100);&lt;br /&gt;SET @tempDriverName = &lt;cfqueryparam cfsqltype=&quot;CF_SQL_VARCHAR&quot; value=&quot;#Arguments.DriverName#&quot; maxlength=&quot;100&quot;&gt;;&lt;br /&gt;			&lt;br /&gt;SELECT ...&lt;br /&gt;WHERE sr.DriverName LIKE '%' + @tempDriverName + '%'</description>
		<dc:creator>GregorC</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2006-04-04T19:38:18</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#39156">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#39156</link>
		<description>the cfqueryparam tag causes an 'Invalid parameter binding(s)' error, when used on an update query to set fields.  The update query works fine if i just pass in the variables normally, but the error occurs when I use the cfqueryparam tag.  Also, I can use the cfqueryparam tag on the 'wehere' clause in the query with no problems.  It is just on the 'set' clauses that the error occurs.</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-09-02T06:37:13</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#38943">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#38943</link>
		<description>In response to dorange;&lt;br /&gt;You might try enabling Unicode for the data source.&lt;br /&gt;To do so:&lt;br /&gt;1. Open the ColdFusion Administrator.&lt;br /&gt;2. Go to the data sources page.&lt;br /&gt;3. Click the name of the data source.&lt;br /&gt;4. Click Show Advanced Settings.&lt;br /&gt;5. Check the &quot;Enable Unicode for data sources configured for non-Latin characters&quot; check box.&lt;br /&gt;6. Click Submit.</description>
		<dc:creator>ASandstrom</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-08-25T07:58:09</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#38918">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#38918</link>
		<description>I didn't try other databases but this tag doesn't support double-byte characters on MS SQL 2000.  MSSQL is peculiar in that it requires prefixing double byte text with an N, for example:&lt;br /&gt;...&lt;br /&gt;SET dbtxt= N'double-foo-text'&lt;br /&gt;....&lt;br /&gt;When i put this in cfqueryparam, it inserts N and quotes and text.  Well, documents should say something about usage with double-byte chars. If tag doesn't support them, docs should say so.</description>
		<dc:creator>dorange</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-08-24T13:27:53</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#37959">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#37959</link>
		<description>I found that the bug is caused by using a return immediately after a star. So instead of the following:&lt;br /&gt;&lt;br /&gt;SELECT Note.*,&lt;br /&gt;    Name.FirstName&lt;br /&gt;FROM Note&lt;br /&gt;INNER JOIN Note ON Name.ID = Note.CreatedByUserID&lt;br /&gt;WHERE Name.ID = &lt;cfqueryparam value=&quot;#ID#&quot; cfsqltype=&quot;cf_sql_integer&quot;&gt;&lt;br /&gt;&lt;br /&gt;I used the following to workaround the problem:&lt;br /&gt;&lt;br /&gt;SELECT Note.*, Name.FirstName&lt;br /&gt;FROM Note&lt;br /&gt;INNER JOIN Note ON Name.ID = Note.CreatedByUserID&lt;br /&gt;WHERE Name.ID = &lt;cfqueryparam value=&quot;#ID#&quot; cfsqltype=&quot;cf_sql_integer&quot;&gt;&lt;br /&gt;&lt;br /&gt;It seemed to have worked for the one instance I had the problem. I'm not sure if the problem will return.</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-07-27T11:32:20</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#37569">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#37569</link>
		<description>Great idea! I entered enhancement request 60636 into our system. FYI, you can enter enhancement requests yourself through http://www.macromedia.com/go/wish/.</description>
		<dc:creator>jrunrandy</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2005-07-18T14:06:27</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#35189">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#35189</link>
		<description>It would be really nice if there could be a function version of this tag.&lt;br /&gt;&lt;br /&gt;Consider:&lt;br /&gt;---&lt;br /&gt;INSERT&lt;br /&gt;INTO member&lt;br /&gt;(title, forename, surname)&lt;br /&gt;VALUES&lt;br /&gt;(&lt;br /&gt;&lt;cfqueryparam value=&quot;#Arguments.title#&quot;&lt;br /&gt;	cfsqltype=&quot;CF_SQL_CHAR&quot; maxlength=&quot;15&quot;/&gt;,&lt;br /&gt;&lt;cfqueryparam value=&quot;#Arguments.forename#&quot;&lt;br /&gt;	cfsqltype=&quot;CF_SQL_CHAR&quot; maxlength=&quot;30&quot;/&gt;,&lt;br /&gt;&lt;cfqueryparam value=&quot;#Arguments.surname#&quot;&lt;br /&gt;	cfsqltype=&quot;CF_SQL_CHAR&quot; maxlength=&quot;30&quot;/&gt;&lt;br /&gt;)&lt;br /&gt;---&lt;br /&gt;&lt;br /&gt;compared to:&lt;br /&gt;&lt;br /&gt;---&lt;br /&gt;INSERT&lt;br /&gt;INTO member&lt;br /&gt;(title, forename, surname)&lt;br /&gt;VALUES&lt;br /&gt;(&lt;br /&gt;#QueryParam(Arguments.title,   'CHAR', 15)#,&lt;br /&gt;#QueryParam(Arguments.forename,'CHAR', 30)#,&lt;br /&gt;#QueryParam(Arguments.surname, 'CHAR', 30)#&lt;br /&gt;)&lt;br /&gt;---&lt;br /&gt;&lt;br /&gt;Much much nicer, easier to read and understand, and doesn't have such a significant impact on the width/height of large queries...</description>
		<dc:creator>boughtonp</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-06-09T08:38:55</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#29341">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#29341</link>
		<description>I suppose you might call it a bug. However, it's easy to imagine the cfqueryparam might have a different processing path depending on whether you specify * or name columns specifically.&lt;br&gt;&lt;br&gt;If you feel it's a bug, you can report it at http://www.macromedia.com/support/email/wishform/main.cgi</description>
		<dc:creator>jrunrandy</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2005-03-09T11:17:32</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#28997">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#28997</link>
		<description>I've had a problem using query param...  it's a bit wierd.&lt;br /&gt;&lt;br /&gt;I have a query&lt;br /&gt;select float_colum from table where id = cfqueryparam cfsqltype=&quot;CF_SQL_INTEGER&quot; value=&quot;45&quot; null=&quot;No&quot;&lt;br /&gt;&lt;br /&gt;which works OK&lt;br /&gt;&lt;br /&gt;if I change the query:&lt;br /&gt;select * from table where id = cfqueryparam cfsqltype=&quot;CF_SQL_INTEGER&quot; value=&quot;45&quot; null=&quot;No&quot;&lt;br /&gt;&lt;br /&gt;the float value get converted to an integer.  &lt;br /&gt;&lt;br /&gt;is this a bug?&lt;br /&gt;&lt;br /&gt;I'm using sql2000 on win2k3  with mx6.1</description>
		<dc:creator>topol_sheap</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-03-04T03:25:43</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#24558">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#24558</link>
		<description>I forgot to mention in my above post that if I do the exact same situation but without the '%' entered in the value area like...&lt;br /&gt;&lt;br /&gt;&lt;cfset variables.string = &quot;%&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfqueryparam value=&quot;#variables.string#&quot;&gt;&lt;br /&gt;&lt;br /&gt;that this seems to search for... \% and not %&lt;br /&gt;&lt;br /&gt;This is not true with my above comment.</description>
		<dc:creator>FuseDesign</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-11-28T22:24:50</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#24557">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#24557</link>
		<description>I am under the impression that the cfqueryparam will escape the sql characters that are passed in through a variable but will not do so for strings you enter in.&lt;br /&gt;&lt;br /&gt;For instance:&lt;br /&gt;&lt;br /&gt;&lt;cfset variables.string = &quot;%&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfqueryparam value=&quot;%#variables.string#%&quot;&gt;&lt;br /&gt;&lt;br /&gt;This would search for... %\%%&lt;br /&gt;&lt;br /&gt;but....&lt;br /&gt;&lt;br /&gt;if it seems to seach for %%%.&lt;br /&gt;&lt;br /&gt;Is this intended?</description>
		<dc:creator>FuseDesign</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-11-28T22:21:35</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#23949">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#23949</link>
		<description>I checked with one of our technical people and this is what he said:&lt;br&gt;*****&lt;br&gt;Most database (including SQLServer) presume that the database structure does not change between re-uses of parameterized queries.&lt;br&gt;&lt;br&gt;Here are three possible solutions.   Try #1 first - it may be enough to fix the problem.&lt;br&gt;With #2 and #3 efficiency is reduced because the SQL statement will be compiled more often.&lt;br&gt;&lt;br&gt;1. Avoid using wildcard   SELECT *   expressions.&lt;br&gt;&lt;br&gt;The expansion of the &quot;*&quot; is the part of the SQL statement most likely to change when the schema is altered, making the compiled SQL statement become invalid.  If the specific fields are listed (and presuming they are still valid fields after the schema change) the compiled statement might still be useable.&lt;br&gt;&lt;br&gt;2. Change   [Max Pooled Statements] in Datasource Advanced Settings to zero.&lt;br&gt;&lt;br&gt;3. Use inline arguments instead of &lt;cfqueryparam&gt; to cause the SQL statement be re-compiled by SQLServer for every request.&lt;br&gt;*****</description>
		<dc:creator>jrunrandy</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2004-11-15T11:39:58</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#23926">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#23926</link>
		<description>Does anyone know how to use the CFQUERYPARAM tag when you want to use one of the db functions?  I want to insert a date using Oracle's to_date function &amp; use CFQUERYPARAM but I get different Oracle errors each way I try.</description>
		<dc:creator>mitchelj</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-11-15T08:15:58</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#23921">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#23921</link>
		<description>Does anyone have answers on the issue with CFQUERYPARAM originally posted by WillRocks?  We've had the same problem with our servers.  The problem appears to originate when we change table structure on a large table in our database (We're running MSSQL Server 2000 Enterprise).  We tested this out and as soon as we added a column to a large table (2+ million records), we immediately got CFQUERYPARAM errors (unable to convert data type).  This is quite frustrating because we have 7 servers on which we have to cycle ColdFusion when this happens (we have ColdFusion MX 6.1 on each of them).  I hope someone has an answer for this...</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-11-15T06:37:50</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#22368">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#22368</link>
		<description>Something's messed up with cfquerparam when used within the order by SQL statement.&lt;br /&gt;It was like it was ignoring the order by entirely.&lt;br /&gt;&lt;br /&gt;&lt;cfif isdefined(&quot;arguments.sortby&quot;) and arguments.sortby neq &quot;&quot;&gt;&lt;br /&gt;order by &lt;cfqueryparam cfsqltype=&quot;cf_sql_varchar&quot; value=&quot;#arguments.sortby#&quot;&gt;&lt;br /&gt;&lt;/cfif&gt;&lt;br /&gt;&lt;br /&gt;is what I had at the bottom of my query in the CFC. There was no CF Error Message or anything to assist me in finding out where the problem was.&lt;br /&gt;&lt;br /&gt;I took the SQL code generated by ColdFusion (in the debug section),&lt;br /&gt;dumped that into Oracle and BAM ordered by correctly.&lt;br /&gt;I thought something was up with my &lt;cfoutput&gt;&lt;br /&gt;I'm using a nested &lt;cfoutput&gt; with the group= attribute.&lt;br /&gt;I tried everything I could think of.. finally asked a friend who&lt;br /&gt;fortunately for me said that he ran into problems using the&lt;br /&gt;&lt;cfqueryparam&gt;  tag in the ORDER BY statement..&lt;br /&gt;I took it out and replaced with&lt;br /&gt;&lt;cfif isdefined(&quot;arguments.sortby&quot;) and arguments.sortby neq &quot;&quot;&gt;&lt;br /&gt;order by #arguments.sortby#&lt;br /&gt;&lt;/cfif&gt;&lt;br /&gt;and it worked.</description>
		<dc:creator>gmorphis</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-10-13T12:38:33</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#21930">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#21930</link>
		<description>? using LIKE in cfqueryparam.  Is it possible to have a like statement with percent signs? Works fine without %, but pt of like-stmt is to match patterns? Ex: &lt;br /&gt;&lt;cfquery name=&quot;myQry&quot; datasource=&quot;myDS&quot;&gt;&lt;br /&gt;    SELECT * FROM job WHERE title LIKE &lt;br /&gt;    &lt;cfqueryparam value=&quot;%#myTitle#%&quot; cfsqltype=&quot;cf_sql_varchar&quot;&gt;&lt;br /&gt;&lt;/cfquery&gt;</description>
		<dc:creator>-ian</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-10-04T15:21:26</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#21606">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#21606</link>
		<description>I find this a bit short on insert queries. You speak to select queries but I can find no exeplars for an Insert query, notably how cfqueryparam is used in the values line of the query statement.&lt;br /&gt;&lt;br /&gt;thanks!</description>
		<dc:creator>Daveb457</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-09-22T07:33:47</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#20217">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#20217</link>
		<description>I did a quick inquiry and a quick test and it does not appear that this will work.&lt;br&gt;However, you might be able to get more information from the ColdFusion Forums,  http://webforums.macromedia.com/coldfusion/.</description>
		<dc:creator>halL</dc:creator>
		<dc:type>1 0</dc:type>
		<dc:date>2004-08-17T13:22:59</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#19890">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#19890</link>
		<description>If you use coldfusion variables to specify field and table names, should  you use cfqueryparam for that too? Will it make a difference?</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-08-11T07:32:03</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#17420">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#17420</link>
		<description>The maxlength attribute ensures that the length check is done by ColdFusion before the string is sent to the DBMS.&lt;br&gt;It can help ensure security by preventing the submission of malicious strings to the DBMS.&lt;br&gt;For more information on using the maxlength attribute see http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/queryd14.htm.&lt;br&gt;For more information on using cfqueryparam, see http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/queryd11.htm and the pages that follow it. (There is also a link to the information page in the Description section of this page.)</description>
		<dc:creator>halL</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2004-06-22T06:20:27</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#17401">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#17401</link>
		<description>Can anyone explain to me the use of the maxLength attribute? I really do not see the need to use it.&lt;br /&gt;&lt;br /&gt;It does not automatically truncate a string! so all I can work out is...&lt;br /&gt;&lt;br /&gt;An error is thrown in coldfusion if a string exceeds the maxlength, if you omit maxLength then the error is thrown from the database if the string exceeds the maxlength of a column. Is this all it does?</description>
		<dc:creator>rippo123456</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-06-22T02:35:22</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#17020">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#17020</link>
		<description>You shouldn't use select * in queries using the cfqueryparam tag. It can cause unexpected errors when you add, remove or modify the table's columns as explained here: http://www.1pixelout.net/index.cfm/blog/entry/cfqueryparam.htm</description>
		<dc:creator>Doryphores</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-06-16T13:01:20</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#15864">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#15864</link>
		<description>&lt;cfqueryparam&gt; doesn't support double byte character. I think it will be a great barrier to the usage on it.</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-06-02T00:08:06</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#15360">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#15360</link>
		<description>No, it doesn't support the Oracle xmltype. This has been entered as an enhancement request for consideration for a future release.</description>
		<dc:creator>ASandstrom</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2004-05-25T09:15:08</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#15305">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#15305</link>
		<description>Does this tag support the Oracle xmltype?</description>
		<dc:creator>comcd</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-05-24T14:16:49</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#12855">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#12855</link>
		<description>You are correct, rev_robert. I've entered a doc bug (#55016) on this issue. Thanks for your feedback.</description>
		<dc:creator>ASandstrom</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-04-13T07:04:22</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#12825">
		<title>coldfusion/6.1/htmldocs/tags-b20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-b20.htm#12825</link>
		<description>Based on the documentation and the recommendation contained within the same, I modified many of my queries to use the &lt;cfqueryparam&gt;.  Most of these queries also used the cached-within parameter.  I guess I should have tested one before changing all, but on testing I got the following error:&lt;br /&gt;&lt;br /&gt;Using &quot;cachedWithin&quot; or &quot;cachedAfter&quot; in CFQUERY with CFQUERYPARAM is not allowed. &lt;br /&gt;&lt;br /&gt;It would have been nice if this was stated in the documentation for &lt;cfqueryparam&gt;.  Now I have to undo all those changes.&lt;br /&gt;&lt;br /&gt;We trust the documentation to identify all the attributes, properties, behaviors, and limitations for tags.  Failure to do so is frustrating and is a breech of trust.&lt;br /&gt;&lt;br /&gt;Thank you.&lt;br /&gt;&lt;br /&gt;Robert</description>
		<dc:creator>rev_robert</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-04-10T05:49:03</dc:date>
	</item>
	</rdf:RDF>

