I need help with a little problem.
I try to read data from a xml-file and save the data in my database.
I try to use this code:
I get the message update successful, but the database is still not updated?
Can someone please help me?
I try to read data from a xml-file and save the data in my database.
I try to use this code:
VB.NET:
Public Sub Filleser1()
Database4DataSet1.Clear()
Database4DataSet1.ReadXml("c:\Test1.xml")
Database4DataSet1.GetChanges()
Database4DataSet1.AcceptChanges()
Try
'Validate()
'KundeEndr.SammendragBindingSource.EndEdit()
KundeEndr.SammendragTableAdapter.Update(Database4DataSet1.Sammendrag)
MsgBox("Update successful")
Catch ex As Exception
MsgBox("Update failed")
End Try
End Sub
I get the message update successful, but the database is still not updated?
Can someone please help me?