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. ---------------------------------------- From: Bruce Sorge <[EMAIL PROTECTED]> Sent: Friday, November 09, 2007 8:24 AM To: CF-Talk <cf-talk@houseoffusion.com> Subject: Re: CFStoredProc It looks like you are missing the DBVAR name. CF Developer wrote: > This should have been simple as making a PB&J. > > I am calling a SP (SQL Server 2005) using the CFStoredProc function and to > get the result set returned as "nextval". > Basically it should return an interget value. > > > > > > > Now if I try to use CFDump to dump the results set "nextval" it indicates the > variable does not exist. > > What is it I am missing? It has ot be something I can say "DOH" about. > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293043 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4