Dataset parameter

G

Guest

I'm having problems passing a dataset parameter through to a stored
procedure. The error I'm getting is:
Procedure 'wf_inventory_product_select' expects parameter '@div', which was
not supplied.
This is the code I'm using:
SqlDataAdapter1.InsertCommand.Parameters.Add("@div",
SqlDbType.VarChar).Value = div
SqlDataAdapter1.UpdateCommand.Parameters.Add("@div",
SqlDbType.VarChar).Value = div
SqlDataAdapter1.Fill(DataSet11)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top