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

Is it important for a database administrator to understand the operating system and file access?

1 Answers  


What is lock escalation?

1 Answers  


how can you attach more than 20 ldf files in sql server

1 Answers   IBM,


Tell me what is normalization? Explain different forms of normalization?

1 Answers  


How to create hyperlink from returned sql query ?

1 Answers   MCN Solutions,


How to change a login name in ms sql server?

1 Answers  


how to rename the table

3 Answers  


What is dimension table? : sql server analysis services, ssas

1 Answers  


What is the use of SCOPE_IDENTITY() function?

2 Answers  


Differentiate between ms sql server reporting services vs crystal reports?

1 Answers  


What is an active database?

1 Answers   HCL,


how you can move data or databases between servers and databases in sql server? : Sql server administration

1 Answers  


Categories