You are right. I misread your issue. Since you are only wanting an output variable, you need to change the type to "OUT" and use the Variable attribute.
<cfprocparam cfsqltype="CF_SQL_INTEGER" variable="nextval" type="OUT"> CF Developer wrote: > The storedProc only returns a single interget value not a > database object or field. > It runs a Query, gets a value, increments the value, updates the table and > returns the new calculated value. > > such as: database table as a field called: thisVal and that field is set to 1 > It will increment it to 2, updates the table > and set to return 2 > > as: return @nextVal > > I thought the dbvarname is used to specify the FIELD that you would want to > be returned. > > ---------------------------------------- > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293044 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4