Solved

how to write data from xml file to database

Posted on 2009-05-11
4
274 Views
Last Modified: 2013-11-27
i want to write some data from xml file to database. but it is not working properly. Im using the opnexml() in the stored procedure
0
Comment
Question by:logicslab
  • 2
4 Comments
 
LVL 31

Expert Comment

by:RiteshShah
ID: 24352709
I have written very small yet useful article to load relational data into SQL Server. have a look.

http://www.sqlhub.com/2009/04/load-relational-xml-data-in-sql-server.html
0
 
LVL 31

Expert Comment

by:RiteshShah
ID: 24352719
you can store XML data along with it TAG also, if you have XML datatype in any column. have a look few more useful articles.

http://msdn.microsoft.com/en-us/library/ms345117.aspx

http://www.sql-server-performance.com/articles/dev/xml_data_2005_p1.aspx
0
 
LVL 46

Accepted Solution

by:
tbsgadi earned 500 total points
ID: 24353175
Hi logicslab,

Have a look at the following:
http://www.sqlservercurry.com/2008/09/how-to-import-xml-data-in-sql-server.html

Good Luck!

Gary
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 24357186
>>i want to write some data from xml file to database. but it is not working properly. Im using the opnexml() in the stored procedure<<
Please post your Stored Procedure and indicate why "it is not working properly".
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
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…
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 UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

758 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

19 Experts available now in Live!

Get 1:1 Help Now