MFritts253
MIS
I'm using Stored Procedures with SQL server. I have specified the InsertCommand,DeleteCommand, UpdateCommand for my dataadapter.
the i go and call this code.
dsTrial.GetChanges()
If dsTrial.HasChanges Then
daTrial.Update(dsTrial, "Trial")
Catch ex As Exception
dsTrial.RejectChanges()
MessageBox.Show(ex.Message & ex.HelpLink) '& "Rejected Changes")
End Try
End If
dsTrial.AcceptChanges()
my problem is that the dataadapter only wants to do Inserts
so if i had a order record(details like list each item order in the grid) already for a customer. If i Save the records it won't try to do an update it only does Inserts and try to insert records with have already been saved to the DB at a previous time.
Sincerely,
Fritts
the i go and call this code.
dsTrial.GetChanges()
If dsTrial.HasChanges Then
daTrial.Update(dsTrial, "Trial")
Catch ex As Exception
dsTrial.RejectChanges()
MessageBox.Show(ex.Message & ex.HelpLink) '& "Rejected Changes")
End Try
End If
dsTrial.AcceptChanges()
my problem is that the dataadapter only wants to do Inserts
so if i had a order record(details like list each item order in the grid) already for a customer. If i Save the records it won't try to do an update it only does Inserts and try to insert records with have already been saved to the DB at a previous time.
Sincerely,
Fritts