procedure expect parameter which was not suplied - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

procedure expect parameter which was not suplied

jeff020590jeff020590 Posts: 2Member
hello, is anyone can help me with this kind of error...!

here's my Procedure
>>
ALTER PROCEDURE procgetproduct_jc
(@ProductID INT)
As
BEGIN
SELECT *
FROM tblProducts
WHERE ProductID= @ProductID;
End;
<<

and here's my code in vb.net...

>>
Public Function GetProduct(ByVal ProductID As Integer) As DataSet
Dim ds As DataSet = Nothing
Dim cmd As IDbCommand
Dim strSQL As String

strSQL = "procgetproduct_jc"
ds = DataLayer.GetDataSet(strSQL, mstrConnectString)

Validate()
cmd = DataLayer.CreateCommand(strSQL, mstrConnectString)
ds = DataLayer.GetDataSet(strSQL, mstrConnectString)
cmd.CommandType = CommandType.StoredProcedure
FillInParameters(cmd)

Return DataLayer.GetDataSet(strSQL, mstrConnectString)
End Function

<<<

Sign In or Register to comment.