Solved

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

Posted on 2008-10-03
6
833 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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to send multiple emails at the same time in PHP 12 29
Splitting the content of a column in SQL 11 23
TSQL - IF ELSE? 3 29
SQL VIEW 7 24
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Viewers will learn how the fundamental information of how to create a table.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

863 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

23 Experts available now in Live!

Get 1:1 Help Now