B
Bassio
Can somebody please help me?
My data adapter's update method uses a delete command stored procedure
but what happens is that only the first datarow marked for deletion is
deleted while the rest of the datarows throw a dbconcurrency exception
and the result is only one record deleted!!
Procedure:
procDelApp(pAppID INT) AS DELETE * FROM App WHERE AppID = pAppID;
Code:
Me.BindingContext(ds.Tables("App")).RemoveAt(pos)
Dim da As New OleDbDataAdapter
da.DeleteCommand = PrepareDeleteCommand_App
Try
da.Update(ds.Tables("App").GetChanges(DataRowState.Deleted))
Catch exc As Exception
Debug.Print(exc.Message)
End Try
My data adapter's update method uses a delete command stored procedure
but what happens is that only the first datarow marked for deletion is
deleted while the rest of the datarows throw a dbconcurrency exception
and the result is only one record deleted!!
Procedure:
procDelApp(pAppID INT) AS DELETE * FROM App WHERE AppID = pAppID;
Code:
Me.BindingContext(ds.Tables("App")).RemoveAt(pos)
Dim da As New OleDbDataAdapter
da.DeleteCommand = PrepareDeleteCommand_App
Try
da.Update(ds.Tables("App").GetChanges(DataRowState.Deleted))
Catch exc As Exception
Debug.Print(exc.Message)
End Try