while loading a big xml file into a dataset, how can i get the percent completed?
thanks...
Printable View
while loading a big xml file into a dataset, how can i get the percent completed?
thanks...
There is no mechanism for getting this information. You would have to invent one. Most ideas will actually slow down the process.
You can split the file into smaller parts and load them into the dataset in chunks showing progress with each chunk. Of course you would probably have to use a temp db (other than xml) to handle the chunks so you can can fill on the same dataset to combine the parts.
how can i have a loop running at the same time as the
database.loadXML("filename")
command is runnning?
ok. i learned how to use threading by now...
but how can i get the status of the xml -> dataset conversion?
probably using some kind of stream???
any ideas at all?
What do you mean? You can make the call asnchronously and marshal the results back.
This example uses a webservice but you can do the samething locally with a delegate:
http://www.vbforums.com/showthread.p...hreadid=294948
right now i load the dataset from xml in a seperate thread.
what does asynchronously mean?
with big xml files this takes about a minute. how do i get the percent completed at any time??
^ bump
this is really important. any ideas?
please...
How big is the xml file?
can be very different. up to 25 megabyte maybe... why?
Asynchronously means not in sync, as in an async call is not performed in sync with another but instead runs on its own thread/sync.
The Dataset has no mechanism for reporting back to you the percent of completion. The closest thing I know of is faking it which is demonstrated in that example.