Executes a stored procedure in a server database. It
specifies database connection information and identifies
the stored procedure.
<cfstoredproc procedure="">
cfstoredproc(procedure="");
false
true
false
false
true
false
Basic example of calling a stored procedure, passing a parameter, and getting a result set.
<cfstoredproc procedure="spu_my_storedproc" datasource="myDSN">
<cfprocparam cfsqltype="cf_sql_integer" value="#myParameterValue#">
<cfprocresult name="qResults">
</cfstoredproc>
Call stored procedure and get back multiple result sets.
cfstoredproc( procedure="spu_my_storedproc",datasource="myDSN" ) {
cfprocparam( cfsqltype="cf_sql_date", value=myDateParam );
cfprocresult( name="qSummary", resultset=1 );
cfprocresult( name="qDetails", resultset=2 );
}
Call stored procedure and get back multiple result sets.
cfstoredproc( procedure="spu_my_storedproc",datasource="myDSN" ) {
procparam( cfsqltype="cf_sql_date", value=myDateParam );
procresult( name="qSummary", resultset=1 );
procresult( name="qDetails", resultset=2 );
}
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.