471,083 Members | 1,066 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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 2517
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**********@hotmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.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
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?


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**********@hotmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by jcsnippets.atspace.com | last post: by
2 posts views Thread by rob | last post: by
1 post views Thread by caine | last post: by
5 posts views Thread by jerry | last post: by
4 posts views Thread by Blake Garner | last post: by

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.