cfprocresult is for returning a query result set.  If you're not 
returning query, then you should use:

<cfprocparam type="OUT" cfsqltype="CF_SQL_INTEGER" variable="nextval">


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. 
> 
>                                               <cfstoredproc 
> datasource="#application.datasource#" procedure="usp_select_nextval">
>    <cfprocparam type="In" cfsqltype="CF_SQL_VARCHAR" value="DataTrack_Block">
>    <cfprocresult name = "nextval">
> </cfstoredproc> 
> 
>                                               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 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293042
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to