here is the test query:
<cfquery name="qry" datasource="#application.dsn#">
update DISC_CUST set DISC_PriceChange = '222222', DISC_TaxablePriceChange = '2222222'
where DISC_ProdID = '1129'
</cfquery>
<cfdump var="#qry#" />
the error is "Variable QRY is undefined."
if you remove the dump the debug results for the query show:
Debugging Information
| ColdFusion Server Enterprise | 8,0,1,195765 |
| Template | /Assets/Import/index.cfm |
| Time Stamp | 19-Jul-10 02:19 PM |
| Locale | English (US) |
| User Agent | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4 ( .NET CLR 3.5.30729) |
| Remote IP | 192.168.1.100 |
| Host Name | 192.168.1.100 |
Execution Time | Total Time | Avg Time | Count | Template | | 5 ms | 5 ms | 1 | /data/vhome/xxxl/httpdocs/Assets/Import/index.cfm | | 3324 ms | | STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN | | 3329 ms | | TOTAL EXECUTION TIME | red = over 250 ms average execution time SQL Queries qry (Datasource=dsn, Time=1ms, Records=0) in /data/vhome/xxx/httpdocs/Assets/Import/index.cfm @ 14:19:19.019
update DISC_CUST set DISC_PriceChange = '222222', DISC_TaxablePriceChange = '2222222' where DISC_ProdID = '1129'
|
Try using the result object created by CFQUERY.
See documentation: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7fae.html
<cfquery name="qry" datasource="#application.dsn#" result="updateResult">
update DISC_CUST set DISC_PriceChange = '222222', DISC_TaxablePriceChange = '2222222'
where DISC_ProdID = '1129'
</cfquery>
<cfdump var="#updateResult#" />