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 base class of Button control in .NET?

613


Is .net capable of supporting multi-thread?

582


Explain the process of compilation in .NET?

632


Explain the difference between task and thread in .net?

522


explain the states of a window service application?

556






How to implement CAS in .Net?

2384


What is garbage collection in .net? Explain the garbage collection process?

568


What is WSDL? Explain its architecture?

646


What is static constructor, when it will be fired?

555


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

559


What is the concept of inheritance and how it works in .net?

544


What is the difference between user control an custom control? Advantages/disadvantages?

574


What are the types of assemblies in .net?

569


Differences between datagrid, datalist and repeater in .net?

537


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

1936