Hello.
My stored procedure sp_Tx_Del_Maint works in query analyzer but the rows aren't being deleted when I call the sp from my asp page. I have displayed the input parameter value and it is correct. I have tried to execute working production stored procedures from my asp page and they don't work either when called from the asp so I think I have a problem with the call and need some other eyes looking at it. I'd sure appreciate any help!
<%
Sub delTxID
On Error Resume Next
Response.Write("in deltxid")
Dim retCode
Dim inPars(0)
inPars(0) = strTxID
Dim i
For i = 0 To UBound(inPars)
Response.Write("inPars(" & i & ") = " & inPars(i) & "<BR>" )
Next
retCode = objBepmDbSp.executeSp(CStr(glStrConn), "sp_Tx_Del_Maint", inPars)
Dim strError
If retCode <> 0 Then
strError = "Return code = " & retCode & " : Error in Delete.!!! "
Response.Write("<tr><td align='center'><font color='navy'>" & strError & "</font></td></tr>")
End If
If Err.number Then
strError = "Delete Error in " & Err.Source & "<BR>" & Err.number & " : " & Err.Description
Else
strError = "Tx ID Deleted Successfully"
End If
Response.Write("<tr><td align='center'><font color='navy'>" & strError & "</font></td></tr>")
End Sub 'delTxID
%>
My stored procedure sp_Tx_Del_Maint works in query analyzer but the rows aren't being deleted when I call the sp from my asp page. I have displayed the input parameter value and it is correct. I have tried to execute working production stored procedures from my asp page and they don't work either when called from the asp so I think I have a problem with the call and need some other eyes looking at it. I'd sure appreciate any help!
<%
Sub delTxID
On Error Resume Next
Response.Write("in deltxid")
Dim retCode
Dim inPars(0)
inPars(0) = strTxID
Dim i
For i = 0 To UBound(inPars)
Response.Write("inPars(" & i & ") = " & inPars(i) & "<BR>" )
Next
retCode = objBepmDbSp.executeSp(CStr(glStrConn), "sp_Tx_Del_Maint", inPars)
Dim strError
If retCode <> 0 Then
strError = "Return code = " & retCode & " : Error in Delete.!!! "
Response.Write("<tr><td align='center'><font color='navy'>" & strError & "</font></td></tr>")
End If
If Err.number Then
strError = "Delete Error in " & Err.Source & "<BR>" & Err.number & " : " & Err.Description
Else
strError = "Tx ID Deleted Successfully"
End If
Response.Write("<tr><td align='center'><font color='navy'>" & strError & "</font></td></tr>")
End Sub 'delTxID
%>