G
Guest
Hello,
Is it possible to update a database via stored procedure without data
binding the dataset to the form?
I ran across this problem and can not seem to figure it out. The problem is
I have a stored procedure with two parameters, I set the values of the
parameters in code
Me.SqlDataAdapter.updatecommand.parameters("@myno").value =
cint(me.textbox1.text)
me.sqldataAdapter.updatecommand.parameters("@myName").value = me.textbox2.text
Then I call the update command
me.sqldataadapter.update(Dataset11,"SelectNames")
Everything seems to work okay, however when I refresh the dataset the
original values are still there and the update never actually stuck. I would
like to accomplish this without having to databind the dataset to the form,
but I'm missing something and I just can't get it to work. I can post
everything if need be, any help would be greatly appreciated.
Thank you
Is it possible to update a database via stored procedure without data
binding the dataset to the form?
I ran across this problem and can not seem to figure it out. The problem is
I have a stored procedure with two parameters, I set the values of the
parameters in code
Me.SqlDataAdapter.updatecommand.parameters("@myno").value =
cint(me.textbox1.text)
me.sqldataAdapter.updatecommand.parameters("@myName").value = me.textbox2.text
Then I call the update command
me.sqldataadapter.update(Dataset11,"SelectNames")
Everything seems to work okay, however when I refresh the dataset the
original values are still there and the update never actually stuck. I would
like to accomplish this without having to databind the dataset to the form,
but I'm missing something and I just can't get it to work. I can post
everything if need be, any help would be greatly appreciated.
Thank you