Hello all. I have written the following SP in SQL and am trying to call it in CF.
Here's how I'm trying to call it:
Here's the bizarre error I'm getting:
Help please.....
rojas1mg - - - I love Tek-Tips and all members who reply.
Code:
CREATE PROCEDURE sp_oreoriExists(
@ore_ori varchar(100))
AS
DECLARE @retcode int
SET @retcode = 0
IF EXISTS(
SELECT ore_ori FROM unfunded
WHERE ore_ori = 1
)
SET @retcode = 1
RETURN @retcode
GO
Code:
<!---This query will run the Stored Procedure (sp_oreoriExists)--->
<cfstoredproc datasource="unfunded" procedure="sp_oreoriExists" returncode="YES">
<!---cfprocresult name="guest_exists"--->
<cfprocparam type="In" cfsqltype="CF_SQL_SMALLINT" dbvarname="@ore_ori" value="1" null="No">
</cfstoredproc>
<cfif CFSTOREDPROC.STATUSCODE eq 1>
We're sorry, but currently there are no ORE/ORI related unfunded requirements.
<cfelse>
blahblahblah.....
Code:
Error Executing Database Query.
[Macromedia][SQLServer JDBC Driver][SQLServer]Formal parameter '@ore_ori' was defined as OUTPUT but the actual parameter not declared OUTPUT.
rojas1mg - - - I love Tek-Tips and all members who reply.