Re: [2005] Reading XML file
vb Code:
Dim YourData As New DataSet
YourData.ReadXml(YourSourceUrl)
That will read your remote XML data into a dataset. You may need to apply a schema to the data if it can't be inferred. Then you should be able to use the Update method to save the information in your local DB as long as the schemas match. If they don't or if you need to do the delete, then you'll need to do a loop.
In your loop, should you use one, don't close and open your connections on each iteration. That is a performance killer. You might also use a Using block to insure objects are being released.
Re: [2005] Reading XML file
Well not all records will be there, there might be some new rows as well, so update will not work on them.
* So I could open the connection, and leave it open till I'm finished
* Download the data to a dataset then work with the data
Will these two make my script run faster???
Re: [2005] Reading XML file
I don't know how much faster these will help but they definately help.
1. Turn Option Strict On and fix any errors that pop out.
2. Declare your variables once outside the loop and re-use them inside the loop instead of declare the same variables in every single execution of the loop.