do you need the val() function? is the value coming in as a string or numeric?
what happens if you simply <cfoutput>#val(arguments.case_id)#</cfoutput>? On Wed, 03 Nov 2004 14:50:24 -0800, Brook Davies <[EMAIL PROTECTED]> wrote: > This query was working fine, with the arguments.case_id variable being > 30026 (and the function it is in is set to receive the case_id as numeric. > Bottom line is it IS numeric. > > <cfquery datasource="#request.datasource#" name="getExpenseRecord"> > select payment_mode from expense > where case_id = <cfqueryparam cfsqltype="cf_sql_integer" > value="#val(arguments.case_id)#"> > </cfquery> > > Now all of a sudden I get this error unless I remove the <cfqueryparam> and > do it without. So its not a big deal, I'm just curious as to what the hecks > happening: > > "Error Executing Database Query. > [Macromedia][SQLServer JDBC Driver]Value can not be converted to requested > type. " > > Is this a bug? > > Brook D. > logiforms.com > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta http://www.houseoffusion.com/banners/view.cfm?bannerid=40 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183316 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54