I am trying to run a stored procedure with 3 input parameters and 1 output parameter and am getting the following error message:
"Error Diagnostic Information
ODBC Error Code = 07001 (Wrong number of parameters)
[Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error
Hint: The cause of this error is usually that your query contains a reference to a field which does not exist. You should verify that the fields included in your query exist and that you have specified their names correctly.
SQL = "sp_contra_replace"
Data Source = "ndexplus"
The error occurred while processing an element with a general identifier of (CFSTOREDPROC), occupying document position (37:2) to (37:76).
Date/Time: 02/22/02 15:20:35
Browser: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
Remote Address: 192.168.111.173
HTTP Referer:
This is the code I am using to do this:
<cfloop index="unpostedUSM" list="#form.unpost#">
<cfset lpsoNo = ListGetAt(unpostedUSM, 1, ";"
>
<cfset LpsoDate = ListGetAt(unpostedUSM, 2, ";"
>
<cfset LpsoVersion = ListGetAt(unpostedUSM, 3, ";"
>
<cfset LpsoSeq = ListGetAt(unpostedUSM, 4, ";"
>
<cfset flag = 0>
#LPSONO#
#LpsoDate#
#LpsoVersion#
<cfstoredproc DATASOURCE="#application.dsn#" PROCEDURE="sp_contra_replace">
<cfprocparam type="IN" value="#LPSONO#" cfsqltype="CF_SQL_BIGINT">
<cfprocparam type="IN" value="#LpsoDate#" cfsqltype="CF_SQL_DATE">
<cfprocparam type="IN" value="#LpsoVersion#" cfsqltype="CF_SQL_BIGINT">
<cfprocparam type="IN" value="#LPSOSEQ#" cfsqltype="CF_SQL_BIGINT">
<cfprocparam type="OUT" variable=Flag cfsqltype="CF_SQL_BIGINT">
</cfstoredproc>
</cfloop>
Can you see what I am doing wrong please????
Cheers,
Shez
"Error Diagnostic Information
ODBC Error Code = 07001 (Wrong number of parameters)
[Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error
Hint: The cause of this error is usually that your query contains a reference to a field which does not exist. You should verify that the fields included in your query exist and that you have specified their names correctly.
SQL = "sp_contra_replace"
Data Source = "ndexplus"
The error occurred while processing an element with a general identifier of (CFSTOREDPROC), occupying document position (37:2) to (37:76).
Date/Time: 02/22/02 15:20:35
Browser: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
Remote Address: 192.168.111.173
HTTP Referer:
This is the code I am using to do this:
<cfloop index="unpostedUSM" list="#form.unpost#">
<cfset lpsoNo = ListGetAt(unpostedUSM, 1, ";"

<cfset LpsoDate = ListGetAt(unpostedUSM, 2, ";"

<cfset LpsoVersion = ListGetAt(unpostedUSM, 3, ";"

<cfset LpsoSeq = ListGetAt(unpostedUSM, 4, ";"

<cfset flag = 0>
#LPSONO#
#LpsoDate#
#LpsoVersion#
<cfstoredproc DATASOURCE="#application.dsn#" PROCEDURE="sp_contra_replace">
<cfprocparam type="IN" value="#LPSONO#" cfsqltype="CF_SQL_BIGINT">
<cfprocparam type="IN" value="#LpsoDate#" cfsqltype="CF_SQL_DATE">
<cfprocparam type="IN" value="#LpsoVersion#" cfsqltype="CF_SQL_BIGINT">
<cfprocparam type="IN" value="#LPSOSEQ#" cfsqltype="CF_SQL_BIGINT">
<cfprocparam type="OUT" variable=Flag cfsqltype="CF_SQL_BIGINT">
</cfstoredproc>
</cfloop>
Can you see what I am doing wrong please????
Cheers,
Shez