D
David R. Longnecker
I'm attempting to call a stored procedure to delete a grouping of records
based on the GridView's DeleteCommand; however, I constantly receive an
error message from Oracle that, after searching through Google and Meta,
does not provide much insight:
ORA-06550: line 1, column 7:
PLS-00801: internal error [22503]
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
The Code:
DeleteCommand="KPR_DELETEreport_id)" DeleteCommandType="StoredProcedure"
<DeleteParameters>
<asp:FormParameter FormField="report_id" Name="report_id" Type="string"
/>
</DeleteParameters>
The Stored Procedure:
1 CREATE OR REPLACE PROCEDURE KPR_Delete (ReportID IN VARCHAR)
2 IS
3 BEGIN
4 DELETE FROM REPORTS_DETAILS where report_id = TO_NUMBER(ReportID);
5 DELETE FROM REPORTS where report_id = TO_NUMBER(ReportID);
6 COMMIT;
7 END;
I can run the stored procedure just fine from SQLPlus using : "exec
KPR_Delete (123);"; however, the error continues to pop-up when running it
through the web page. Is there a particular way to pass these variables
from the GridView that I'm missing?
Thanks in advance!
-David
--
David R. Longnecker
CCNA, MCSA, Network+, A+
Management Information Services
Wichita Public Schools, USD 259
based on the GridView's DeleteCommand; however, I constantly receive an
error message from Oracle that, after searching through Google and Meta,
does not provide much insight:
ORA-06550: line 1, column 7:
PLS-00801: internal error [22503]
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
The Code:
DeleteCommand="KPR_DELETEreport_id)" DeleteCommandType="StoredProcedure"
<DeleteParameters>
<asp:FormParameter FormField="report_id" Name="report_id" Type="string"
/>
</DeleteParameters>
The Stored Procedure:
1 CREATE OR REPLACE PROCEDURE KPR_Delete (ReportID IN VARCHAR)
2 IS
3 BEGIN
4 DELETE FROM REPORTS_DETAILS where report_id = TO_NUMBER(ReportID);
5 DELETE FROM REPORTS where report_id = TO_NUMBER(ReportID);
6 COMMIT;
7 END;
I can run the stored procedure just fine from SQLPlus using : "exec
KPR_Delete (123);"; however, the error continues to pop-up when running it
through the web page. Is there a particular way to pass these variables
from the GridView that I'm missing?
Thanks in advance!
-David
--
David R. Longnecker
CCNA, MCSA, Network+, A+
Management Information Services
Wichita Public Schools, USD 259