what purpose does OPENXML clause have in sql server stored
procedure?



what purpose does OPENXML clause have in sql server stored procedure?..

Answer / p.rajesh

OPENXML, a Transact-SQL keyword, provides a rowset over in-
memory XML documents that is similar to a table or a view.
OPENXML allows access to XML data as though it is a
relational rowset. It does this by providing a rowset view
of the internal representation of an XML document. The
records in the rowset can be stored in database tables.

OPENXML can be used in SELECT and SELECT INTO statements
wherever rowset providers, a view, or OPENROWSET can appear
as the source. For information about the syntax of OPENXML,
see OPENXML (Transact-SQL).

To write queries against an XML document by using OPENXML,
you must first call sp_xml_preparedocument. This parses the
XML document and returns a handle to the parsed document
that is ready for consumption. The parsed document is a
document object model (DOM) tree representation of various
nodes in the XML document. The document handle is passed to
OPENXML. OPENXML then provides a rowset view of the
document, based on the parameters passed to it.

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More SQL Server Interview Questions

Explain some stored procedure creating best practices or guidelines?

0 Answers  


how to give input dynamically to a insert statement in sqlserver

3 Answers   HCL,


Whether the updations made to the views reflect the original records in the table

5 Answers   NIIT,


What are number line correlation administrators will use while working with a subquery?

0 Answers  


How to find the date and time of last updated table?

3 Answers  






How many types of indexes are there in SQL Server?

6 Answers   CarrizalSoft Technologies, United Healthcare,


How connect excel to sql server?

0 Answers  


what is Covering Index ?

3 Answers   Thomson Reuters,


What is mssql?

0 Answers  


How to concatenate two strings in SQL Server.

0 Answers   HCL,


When would you use an insert into .. Select option versus an insert into .. Values option? Give an example of each?

0 Answers  


what is the diffrence between Snap Shot and Transaction Replication

2 Answers   CSC,


Categories