Solved

How do I import XML file into SQL Server 2005???

Posted on 2008-10-03
6
863 Views
Last Modified: 2013-11-15
Hi,

I was wondering if someone could explain to me how I can go about importing a set of data from an XML file to a database.  The file is located on: http://www.treasurydirect.gov/xml/PendingAuctions.xml

Any suggestion will be greatly appreciated!  Thanks
0
Comment
Question by:iamnamja
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 10

Accepted Solution

by:
Marcjev earned 500 total points
ID: 22637593
http://support.microsoft.com/kb/316005

This article handles this.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 22641485
Post the structure of the tables involved, columns to be imported and typical size of the Xml document.
0
 

Author Comment

by:iamnamja
ID: 22649445
As you can see from the url above, the table consists of only a few columns.  

Security type, cusip, announcement date, auction date, and issue date.

and the data usually runs only 3-4 sets.  I just want to be able to import that into a nice readable format such as excel or into sql so that i can automate the grabbing of the data.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 22655707
I can show you how you can do that with a stored procedure, but you would still need some front-end app (written in VbScript, .NET, etc.) to pass the Xml document.  Is that an option?
0
 

Author Comment

by:iamnamja
ID: 22662470
then... would this be easier to do on excel? just out of curiosity?  Only thing is our office only has excel 2002.  If that's possible.  actually i would prefer using excel over sql server.  let me know!  Thanks.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 22662710
I have no idea.  It is trivial doing it in MS SQL Server.  But if you are not familiar with it, than it will be difficult to explain.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how the fundamental information of how to create a table.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question