My guess is that Reportnumber is an INTEGER field but the CFQUERYPARAM you are specifying indicates a VARCHAR field.
-----Original Message----- From: Peterson, Chris [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 10, 2007 7:43 AM To: CF-Talk Subject: Could not find prepared statement with handle 2 - suddenly? Making no code or server changes (that I know of), this morning an application that I have had going for 4 years+ started throwing this error: Could not find prepared statement with handle 2 I tracked it down to this pretty simple query here: <cfquery name="getReportInformation" datasource="Reports"> SELECT * FROM runReports WHERE Reportnumber = <cfqueryparam cfsqltype="cf_sql_varchar" value="#trim(url.report)#"> </cfquery> I removed the cfqueryparam, and it starts working perfectly. Why would this break all the suddon? Any idea's? Chris Peterson ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274926 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

