Solved

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

Posted on 2008-10-03
6
820 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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

707 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now