Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 The problem of reading a XML file into a table
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

8 Posts

Posted - 03/21/2007 :  00:03:41  Show Profile  Reply with Quote
Hi you all,
I have an XML file as the following:
<?xml version="1.0" standalone="yes"?>
<xs:schema id="DataSet" xmlns="" xmlns:xs="" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="DataSet" msdata:IsDataSet="true" msdata:Locale="vi-VN">
<xs:choice maxOccurs="unbounded">
<xs:element name="STS_ORDERS">
<xs:element name="ORDER_NO" type="xs:string" minOccurs="0" />
<xs:element name="ORDER_DATE" type="xs:dateTime" minOccurs="0" />
<xs:element name="ORDER_TIME" type="xs:string" minOccurs="0" />
<xs:element name="MEMBER_ID" type="xs:decimal" minOccurs="0" />
<xs:element name="ORDER_TYPE" type="xs:decimal" minOccurs="0" />
<xs:element name="PRIORITY" type="xs:decimal" minOccurs="0" />
<xs:element name="ORDER_QTTY" type="xs:decimal" minOccurs="0" />
<xs:element name="ORDER_PRICE" type="xs:decimal" minOccurs="0" />
<xs:element name="STATUS" type="xs:decimal" minOccurs="0" />


and I have to read this file into a SQL 2000 Server table every 10 seconds.

At the moment, I use an Windows form application in which
a Timer executes objDataSet.ReadXml, then executes Insert into the table every 10 seconds.

The performance is not good because the XML file size is rather big (about 5MB). Anyone could give me a better solution?

Flowing Fount of Yak Knowledge

1837 Posts

Posted - 03/21/2007 :  15:42:48  Show Profile  Reply with Quote
Take a look here
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2019 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000