473,401 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Feeding XML to SQL2000 database

I'm starting research on how I could best approach feeding XML files
to a relational database.
Here's the scenario:
- we receive several hundred XML files per week, all of which adhere
to the same structure (we have complete control over the structure and
the data that goes into the XML).
- upon receipt of an XML file, we should extract the data into a
Sql2000 relational database. Once that's done, we can discard the XML
(only used for transporting the data).
- the data in the database will be used for extensive querying

- we currently have an XSD file (though we don't use it for any other
purpose than to validate the XML files when they come in).
- we have not created the relational database yet.

I'm trying to figure out how I can create the DB schema from the XSD,
and whether that's the best approach, given that the XSD doesn't
contain much info on field types or sizes, relationships, keys,
indexes etc...
Secondly, I'm also trying to figure out how to import the data from
the XML to the DB in a reliable way. Should I create an XSD that
contains all the mapping information (tables, fields, relationships,
keys, etc...), or should I write the import functionality in a .NET
module for more flexibility and logging control?
If the latter approach is more flexible, I assume that I would load
the XML and use the DOM to read nodes and put them in the appropriate
place in the database.

Finally, I'm playing around with XMLSpy. Do any of you have a
recommendation for tools to assist in what I need to achieve?

If anyone can give some hints on how to approach this endeavor, I'd
greatly appreciate it.

-- Hans.
Nov 29 '07 #1
1 1925
Its called "shredding" not "feeding" so there's a useful search term.

--
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
"Froefel" <ha************@gmail.comwrote in message
news:ab**********************************@o42g2000 hsc.googlegroups.com...
I'm starting research on how I could best approach feeding XML files
to a relational database.
Here's the scenario:
- we receive several hundred XML files per week, all of which adhere
to the same structure (we have complete control over the structure and
the data that goes into the XML).
- upon receipt of an XML file, we should extract the data into a
Sql2000 relational database. Once that's done, we can discard the XML
(only used for transporting the data).
- the data in the database will be used for extensive querying

- we currently have an XSD file (though we don't use it for any other
purpose than to validate the XML files when they come in).
- we have not created the relational database yet.

I'm trying to figure out how I can create the DB schema from the XSD,
and whether that's the best approach, given that the XSD doesn't
contain much info on field types or sizes, relationships, keys,
indexes etc...
Secondly, I'm also trying to figure out how to import the data from
the XML to the DB in a reliable way. Should I create an XSD that
contains all the mapping information (tables, fields, relationships,
keys, etc...), or should I write the import functionality in a .NET
module for more flexibility and logging control?
If the latter approach is more flexible, I assume that I would load
the XML and use the DOM to read nodes and put them in the appropriate
place in the database.

Finally, I'm playing around with XMLSpy. Do any of you have a
recommendation for tools to assist in what I need to achieve?

If anyone can give some hints on how to approach this endeavor, I'd
greatly appreciate it.

-- Hans.

Dec 10 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: John | last post by:
Hi All, If I want to deploy an C#+SQL2000 application to client site, does the client computer need to have SQL2000 server at all ? or the relevant database and tables will be collected during...
1
by: Cobra Pilot | last post by:
I am hoping someone in this group can lead me to some whitepapers that discuss converting a legacy AS400 DB2 database to SQL2000 using DTS. I believe the AS400 is SNA so I'll probably need to...
1
by: Jep | last post by:
I have to setup some scheduled tasks to copy 3-4 tables from an SQL2000 database to DB2 v. 8.1. The job must run every night replacing all data. How can this be done - with standard...
1
by: LizP | last post by:
Hi, guys - looking for a bit of help/advice on moving a database from SQL 7 to SQL 2000. We've a third party application which currently uses a SQL7 database. This database has a number of views...
0
by: bk | last post by:
I get "SQL Server is unavailable or does not exist" error while developing asp.net application in vs2003's IDE development mode. The sql2000 is installed on a windows 2003 server. I am able to...
4
by: Cadence | last post by:
Hello NG- I'm new to indepth programming and developing of C# and databases. I want to make full use of ADO.NET with ASP.NET and C#. So my question is this; Will I be able to use the...
6
by: David Waz... | last post by:
Moved an app from W/2000 Asp V1.0 to W/2003, VS/2003, ASPV 1.1 Page runs a long job, uploading 2 large fixed length files (300,000 rows) into SQL database. A process is run against the data,...
0
by: parameswar | last post by:
Hi friends Now I am working in SQL2000 as back end .I want to load jpeg file in database and retrieve from database. Please guide me.
8
by: Radu | last post by:
Hi. This code worked fine with SQL2005, but has a problem with SQL2000.... Which one ???? cnSQL = New SqlConnection(System.Configuration.ConfigurationManager.AppSettings("ConnectionString"))...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.