Solved

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

Posted on 2008-10-03
6
854 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
  • 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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
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

Suggested Solutions

Title # Comments Views Activity
T-SQL 10 35
CDC and AOG on MS SQL 2012 13 23
MS SQL: Getting all rows not just one , combining multiple queries 11 25
Use column to search string column 2 9
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
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.

840 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