Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using a stored procedure for insertion, updation, retrieval of data.
Sometimes it is showing unexpected errors. First it works smoothly, but I think I need to fix some settings.
It is showing errors like "Procedure or function declares too many arguments", "@Date is not supplied".
How can i solve it ?
Posted
v4
Comments
BeamingJo 19-Nov-12 8:53am    
In order to have more details, can you show us the procedure please?
__TR__ 19-Nov-12 8:55am    
Looking at your error message it looks like the parameters you are passing from your code is not matching with the parameters in your stored procedure.

1 solution

First check number of parameter name and value is same or not.
Second check you provided parameter name (which you sending from your application at the time of calling sp), it must be same as SP parameter name (check you have provide @).
 
Share this answer
 
v2

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