Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Using TClientDataSet to load from .xml to database table


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 0 Threads: [ Previous | Next ]
Trevor Cooper

Posts: 45
Registered: 10/7/10
Using TClientDataSet to load from .xml to database table  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 12, 2016 7:39 AM
Hi,

It's very easy to export a database table to .xml using a TClientDataSet, but it doesn't seem very easy to reverse the process. After connecting the TClientDataSet to a TDataSetProvider, itself connected to the target database table, the TClientDataSet.LoadFromFile effectively inserts records into the previously empty TClientDataSet, but doesn't increment the ChangeCount. So ApplyUpdates does nothing. There are no errors.

Is it possible to do what I want to do with a TClientDataSet? Seems a rather basic ask...

Thanks

Trevor Cooper
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02