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 typical about a windows process in regards to memory allocation in .net?

768


Please explain what is the difference between a class and an object?

792


Explain what is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?

748


Conceptually, what is the difference between early-binding and late-binding?

808


What is assemblies in .net?

854


Sql Queries: A Table will be given Omiting Duplicate rows and adding a new column

2138


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

775


How can you instantiate a tuple?

759


What is file extension of Webservices in .Net?

797


Why inheritance is important?

776


What is operator overloading in .net?

800


What tags do you need to add within the asp:datagrid tags to bind columns manually.

1671


If I am writing in a language like vb or c++, what are the procedures to be followed to support .net?

790


What is the native image generator?

822


Do you know what is garbage collector?

786