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 the advantage of packaging over xcopy in .net?

589


What are nullable types in .NET

623


Tell about your technical profile ?

3102


Explain what is reflection in microsoft .net context?

562


Is there any thread in our .net programs?

595






What is the benefit of .net core?

493


What is data type and how many types of data types are in .NET ?

555


Compare client server application with n-tier application

510


What is meant by managed and unmanaged code?

602


Explain how to spawn a thread?

540


Explain what is the difference between odbc and ado?

517


How do you view the methods and members of a dll?

619


How to produce an assembly?

562


What is the difference between asp.net & vb.net and explain architecture?

538


What's singlecall activation mode used for in .net?

545