473,569 Members | 2,916 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML data feed

Hello,
I have an XML data feed that I would like to use to create tables in
SQL Server. The xml data feed consists of a large amount of
information that changes on a regualar basis. Is there a way to
automatically create SQL Server tables using the data feed?

Thanks
Billy

Dec 29 '05 #1
7 2621
billy wrote:
Hello,
I have an XML data feed that I would like to use to create tables in
SQL Server. The xml data feed consists of a large amount of
information that changes on a regualar basis. Is there a way to
automatically create SQL Server tables using the data feed?

Thanks
Billy


In SQL Server 2005 you can use the XML datatype to store XML documents
in a column but I don't think that is what you are asking for.

Deriving a useful relational schema from an arbitrary XML document with
no other information to go on is potentially a very difficult task.
What is the information that changes on a regular basis and how does it
or should it map to tables in your database? Do you know the metadata
in advance or only at runtime? How will users or processes consume the
data if its structure isn't known at design time?

--
David Portas
SQL Server MVP
--

Dec 29 '05 #2
Hi

You may want to check out
http://msdn.microsoft.com/XML/Buildi...e/default.aspx
http://msdn.microsoft.com/library/de...egram_375f.asp

John

"billy" <bi**********@h otmail.com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. .
Hello,
I have an XML data feed that I would like to use to create tables in
SQL Server. The xml data feed consists of a large amount of
information that changes on a regualar basis. Is there a way to
automatically create SQL Server tables using the data feed?

Thanks
Billy

Dec 29 '05 #3
Rob
David Portas wrote:
billy wrote:

Hello,
I have an XML data feed that I would like to use to create tables in
SQL Server. The xml data feed consists of a large amount of
information that changes on a regualar basis. Is there a way to
automatical ly create SQL Server tables using the data feed?

Thanks
Billy

In SQL Server 2005 you can use the XML datatype to store XML documents
in a column but I don't think that is what you are asking for.

Deriving a useful relational schema from an arbitrary XML document with
no other information to go on is potentially a very difficult task.
What is the information that changes on a regular basis and how does it
or should it map to tables in your database? Do you know the metadata
in advance or only at runtime? How will users or processes consume the
data if its structure isn't known at design time?


I believe using SQL Server Integration Services can solve this IF the
XML document has inline XSD tags or an XSD file is available with each
feed. An XML Source can be added to a data flow task and its output
directed to a table which I also "believe" can be created on the fly
based on the source schema.

Be warned that I have never tried this task. My statement is based on
something I read late at night and hopefully remember clearly. If
someone in the group can confirm or deny my statement, I'll be able to
sleep tonight. :)

In any case, I'm curious to know the application for this type of
functionality as I agree that deriving schema and building tables on the
fly is a challenging approach.
Dec 29 '05 #4
I will know that meta data in advance. I think that the tables will
change about once a month or so.

Dec 30 '05 #5
Thanks. I think I have checked these out in the past though.. but i am
not sure will take a look.

Dec 30 '05 #6
Thanks Rob. I have not yet had a chance to check out SQL Server 2005.
I will most likely do that next week.

Dec 30 '05 #7
Hi Billy

Unfortunately your question is too vague to give a definite answer. More
information on how you are getting the XML and the contents of the file
would help. Are inserting the data into the same table or a different table?
What is going to change in the XML?

John

"billy" <bi**********@h otmail.com> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. .
Thanks. I think I have checked these out in the past though.. but i am
not sure will take a look.

Dec 30 '05 #8

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

Similar topics

2
2258
by: lawrence | last post by:
I had some code that worked fine for several weeks, and then yesterday it stopped working. I'm not sure what I did. Nor can I make out why it isn't working. I'm running a query that should return 3 items from the database. I then get a count of the return, which correctly tells me that I've got 3 items. I then go into a for loop which I expect...
7
12745
by: Chris | last post by:
Here's the situation: I work at a scientific institution and I have a portable electronic device which is used to take measurements. The device produces a very small amount of numerical data, about 10 to 15 numbers per measurement. This operation is performed frequently and I would like to implement an automatic solution that moves this...
1
2328
by: jcsnippets.atspace.com | last post by:
Hi everyone, I'm trying to read an xml config file in C#. To do this, I have used the xsd.exe tool to create an xsd file from my xml, and to generate code to read this xml file. Here is a small sample of my xml file: <feed> <location> <directory>data</directory>
2
1556
by: rob | last post by:
I'm looking for the best way to do minimal (probably 1 MB or so) updates to existing data, by having the client app monitor a live feed. That data feed will periodically broadcast the update packet to all clients. I suspect that this is done often enough that there is a somewhat standard method, or maybe a toolkit. How is this usually...
1
2662
by: caine | last post by:
I want to extract web data from a news feed page http://everling.nierchi.net/mmubulletins.php. Just want to extract necessary info between open n closing tags of <title>, <categoryand <link>. Whenever I initiated the extraction, first news title is always "MMU Bulletin Board RSS Feed" with the proper bulletin's link stored, but not the...
5
1593
by: jerry | last post by:
Ok, I have a feed that I need to get the data from. The file is an html file that contains items. I need to step through the file, getting the first item, doing whatever, then the second item, and so on. Any thoughts on the best way to to this? <Feed> <Item> <ID>Data I need</ID> <Title>Data I need</Title> </Item>
7
28882
Merlin1857
by: Merlin1857 | last post by:
Its great producing data for users to look at in your web pages and generally that is sufficient for their needs but sometimes you may want to supply your user with the data in a form they can actually do something more with. This code shows you how to display data from your database and then how to give that data to the user in the form of a...
3
3379
by: tombrogan3 | last post by:
Hi, I'm writing a service which has to monitor a database looking for new feeds (basically a few hundred thousand rows with a common id). When it finds a new feed I can either: 1) Process it on the current thread (not ideal as the app must be seen to be responding to new feeds straight away, and this processing can take up to an hour). 2)...
4
1940
by: Blake Garner | last post by:
I'm looking for suggestions on how to approach generating rss feed ..xml files using python. What modules to people recommend I start with? Thanks! Blake
0
7693
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7917
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7962
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2105
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.