you have a requirement from client, he has an XML file and
you need to insert the data into 5-6 tables in database.
explain me the procedure.

Answer Posted / santosh kakani

we can use sqlserver 2005 for inserting data from XML into
database tables

example
insert into <Table_Name> select * from openxml(@doc,
'/Root/customer',;)

with (Custid varchar(10)'/Root/Customer/@Custid', cname
varchar(30)'/Root/Customer/@Cname')


then Exec sp_Xml_RemoveDocument @ doc

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is .net technology?

814


What is Complex Class in .NET?

815


What is loosely coupled solution in.net?

771


What is the difference between constants and read-only variables?

776


i had attended to infosys interview on 17th april 2010...on .net..3+ experience for Technology Analyst .. to my knowledge i did well in technical and hr whether i loose the interview or still processing is taking place..am confused please. what accuatly would be happend?

2166


what will do to avoid prior case?

798


How to create multiple inheritance in c#, with example?

799


Please explain what is reflection and what is it for?

729


Explain how garbage collection works?

796


What is meant by managed and unmanaged code?

884


Explain what is the difference between a class and an object?

876


How to load a user control dynamically in runtime?

801


Explain the difference between constants and read-only variables?

781


What are Attributes in .NET?

798


What are .net applications?

767