Ask a Question related to Coldfusion Database Access, Design and Development.
-
zax_srb #1
Caching a resultset from a stored procedure
Hello,
I am trying to cache the resultset from a stored procedure, and ONLY for this
reason I am calling the procedure using <cfquery>. But for some reason, I am
unable to get this to work. So far I have tried:
<cfquery name="FieldData" datasource="#request.dsn#">
CALL bsad_owner.PKG_BSAD_APPS.prc_report_field_config
('#AppName#', '#screenName#', #gid#)
</cfquery>
and:
<cfquery name="FieldData" datasource="#request.dsn#">
EXEC bsad_owner.PKG_BSAD_APPS.prc_report_field_config
('#AppName#', '#screenName#', #gid#)
</cfquery>
but neither work. I know I have not yet added the 'cachedwithin' bit, but my
first step is to get it to work. The error I get from Oracle is:
PLS-306: wrong number or types of arguments in call to
'PRC_REPORT_FIELD_CONFIG'
and the procedure definition is:
oNbr_RetCode OUT NUMBER,
oVar_RetMsg OUT VARCHAR2,
oRef_FieldData OUT SYS_REFCURSOR,
iVar_AppName IN bsad_applications.application%TYPE,
iVar_Screen IN app_field_config.screen%TYPE,
iNbr_GID IN bsad_users.user_id%TYPE
and I am out of ideas. If anyone has had any experience of this, and can see
what I am doing wrong, I would be very grateful.
Many Thanks,
Stephen
zax_srb Guest
-
MS SQL stored procedure
I am new to MS SQL server and stored procedures. I currently have a query that looks like: select from table where fieldname IN... -
help with a stored procedure
I am new to postgres stored procedures and would like a little help. My function basically takes 2 arguments and inserts data into a table from a... -
Procedure wrapper needs 2nd Resultset?
I'm trying to create a wrapper procedure. The procedure I'm calling returns 2 resultsets. I really only need the second, but I'm not sure how to... -
JDBC ResultSet - Where is its stored? DB2 client app or Java program's JVM?
When a Java program executes a SQL query using JDBC, is the ResultSet data stored in the DB2 Client process or in the JVM for the Java program? The... -
Stored Procedure not returning the wanted resultset
My stored procedure is not returning the resultset I am expecting. The procedure is: CREATE PROCEDURE hms.getHMStest( @userid int, @userrole...



Reply With Quote

