Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a stored procedure that I can run in SQL Developer but how can i command it on asp.net?
VB
'RUN PROCEDURE
           isStatus(lblStatus.Text)


is it like this?
VB
Dim SP As New OracleCommand("isStatus", code.OCon)
         SP.Parameters.Add(New OracleParameter("pn", lblStatus.Text))
         SP.ExecuteNonQuery()


Thanks in advance!
Posted
Comments
Jörgen Andersson 29-Apr-15 2:26am    
The Oracle Command also has a parameter to state that it is a Stored Procedure.
NekoNao 29-Apr-15 3:17am    
how?

1 solution

Use SP.CommandType = CommandType.StoredProcedure
 
Share this answer
 
Comments
NekoNao 29-Apr-15 4:11am    
tried that . but it doesnt work. T_T
Jörgen Andersson 29-Apr-15 4:34am    
Any errors?
NekoNao 29-Apr-15 4:37am    
there is no error.. but there is no update also
Jörgen Andersson 29-Apr-15 4:50am    
How does the SP look like?
NekoNao 29-Apr-15 5:09am    
can you also check this http://www.codeproject.com/Questions/986617/Update-Query-on-Oracle-Not-Working

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900