> Hi, I have an SP that I want to call correctly. I can > simply do: > exec sp_autotags @PINNumber = #attributes.PIN# within a > cfquery tag and it executes fine. But when I try using > cfstoredproc/procparam I get errors. I wasn't able to > decipher the documentation on the tags. Here's what I'm > trying: > <cfstoredproc procedure="qry_autotags3" > datasource="#application.ivrdsnsearch#"> > <cfprocparam type="In" cfsqltype="CF_SQL_VARCHAR" > variable="PINNumber" value="#attributes.PIN#"> > <cfprocresult name="qry_autotags" resultset="1">
> The proc returns a resultset like any other query > 0-whatever number of records. > Ideas? As Kevin says, the variable attribute is used for a return value -- dbvarname was deprecated -- cfprocparam doesn't support calling parameters by name ... check your stored procedure, make sure pinnumber is the first (only?) parameter and that it's a varchar data type... your original syntax didn't have quotes around the parameter, so it looks like a numeric (although that could certainly be a typo). If none of those lead you anywhere you might try changing the drivers -- is this an Oracle database? I've heard (and experienced) that oracle drivers can be rather finicky. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207261 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

