Re: Timing Rescordset
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Sun, 3 Sep 2006 08:28:31 -0400
hgeron wrote:
I searched many Access help web sites looking for examples
of reading an xml file and storing the data into tables.
I found very little info for Access. Most I found would not
work in Access modules. Most required some language
that is not possible for me to use. What every I develop
must be already installed in our CCE computers (a USDA
standard configuration)
I will lookup "parameter query", but I think you mean a
query that will allow me to pass the table name and data
to store the XML data.
No, you cannot pass the table name: only the data.
But from what I have learned in the
last month working with XML, it's the parsing of XML that's
the time consuming activity, not storing the data in a recordset.
Nobody ever said that xml was fast. :-)
My current method reads 1000 line nodes then stores 1000 nodeYes.
into a record set. Reading 1000 nodes of XLM takes many 3 or 4
minutes but storing into the recordset takes only a second.
It's the parsing of XML I need to improve.
I don't see how a parameter query would help.
Am I missing you point?
I was not suggesting parameter queries in the interests of performance. I
was addressing your specific question about cancelling the update. Using a
saved parameter query would allow you to avoid the problem you are having
with cancelling the update (just don't run the query if the node is the
wrong type).
Anyways, you seem to have missed my comment about checking the node type
BEFORE adding the data to the recordset. It seems to me that would also be a
solution to your problem. Check the node type. If it's a text node, don't
add a new record to the recordset: move to the next node.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
.
- Follow-Ups:
- Re: Timing Rescordset
- From: hgeron
- Re: Timing Rescordset
- References:
- Re: Timing Rescordset
- From: Bob Barrows [MVP]
- Re: Timing Rescordset
- From: hgeron
- Re: Timing Rescordset
- From: Bob Barrows [MVP]
- Re: Timing Rescordset
- From: hgeron
- Re: Timing Rescordset
- From: Bob Barrows [MVP]
- Re: Timing Rescordset
- Prev by Date: Re: Timing Rescordset
- Next by Date: Re: Timing Rescordset
- Previous by thread: Re: Timing Rescordset
- Next by thread: Re: Timing Rescordset
- Index(es):
Relevant Pages
|
Loading