I'm trying to execute a SQL Server 7 stored procedure from my ASP script but I keep getting the following error msg -"(0x80040E14)
[Microsoft][ODBC SQL Server Driver]Syntax error or access violation"
The stored procedure returns an integer status code that I'm trying in vain to retrieve.
Here's the script I'm trying to run:
objCmd.ActiveConnection = objConn
objCmd.CommandText = "sp_insert_ResumeDetail " & strParamList
objCmd.CommandType = 4 'adCmdStoredProc
objCmd.Parameters.Append objCmd.CreateParameter("RETURN_VALUE", 3, 4, 0)
Set objRec = objCmd.Execute '<----- Error's here
If Not objRec.EOF Then
For Each adoField In objRec.Fields
Response.Write adoField.Name & "=" & adoField.Value & "<br />"
Next
End If
If I use the Execute method of the objConn Connection object, the SP runs fine, so I know it's not a syntax error, but then I can't get the return value.
Anything obvious that I'm doing wrong?
[Microsoft][ODBC SQL Server Driver]Syntax error or access violation"
The stored procedure returns an integer status code that I'm trying in vain to retrieve.
Here's the script I'm trying to run:
objCmd.ActiveConnection = objConn
objCmd.CommandText = "sp_insert_ResumeDetail " & strParamList
objCmd.CommandType = 4 'adCmdStoredProc
objCmd.Parameters.Append objCmd.CreateParameter("RETURN_VALUE", 3, 4, 0)
Set objRec = objCmd.Execute '<----- Error's here
If Not objRec.EOF Then
For Each adoField In objRec.Fields
Response.Write adoField.Name & "=" & adoField.Value & "<br />"
Next
End If
If I use the Execute method of the objConn Connection object, the SP runs fine, so I know it's not a syntax error, but then I can't get the return value.
Anything obvious that I'm doing wrong?