12-21-04 01:46 AM
We receive a xml file containing a full set of a list of companies and their
phone numbers etc. What I would like to do with this data is to delete all
data in the tables and insert the latest full set of data. What I don't want
is to delete all data and then having some error so only part or nothing is
inserted because the information is crucial to other critical applications.
They can only handle a small delays so the file has to be split up into
smaller messages (one per company). Is there some way nice way to accomplish
this? We have schemas so the document is automatically split up into smaller
parts to be able to insert. Is it possible to use the orchestration to:
receive file
(begin transaction)
execute delete SP
divide file into smaller data parts which are inserted into DB (SP)
(commit transaction)
The problem for me seems to be how to divide the file in the orchestrion and
be able to hold the divided messages in the transaction? Would this be
possible? How? Will this lock the whole database?
Or is it safer to insert the data into a temp DB and then execute some DTS
at given times?
Best regards
Niklas E
[ Post a follow-up to this message ]
|