cfstoredproc.statuscode
-----Original Message-----
From: CF Developer [mailto:[EMAIL PROTECTED]
Sent: Friday, November 09, 2007 10:40 AM
To: CF-Talk
Subject: Re: CFStoredProc
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 <[email protected]>
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.
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293046
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4