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

Using the customer, and order table in northwind database, please write a query to produce xml?

0 Answers  


What method is used by the Command classes to execute SQL statements that return single values?

0 Answers   B-Ways TecnoSoft,


how to improve the speed of SQL database server and how to avoid dead lock?

1 Answers   TCS,


What is read uncmmited?

0 Answers  


Describe in brief system database.

0 Answers  






How many null values we can have in a unique key field in sql server?

0 Answers  


How sql server executes a statement with nested subqueries?

0 Answers  


In the below query i have performed the commit transaction statement but still the values after the save are not saved. Can you please let me know why are the statements after save are rolled back even after commiting the data. help me with the understanding declare @trans2 varchar(10)='transaction2' begin transaction @trans2 insert into emp values(100,'xy',600); save transaction @trans2 insert into emp values(200,'pq',700); insert into emp values(300,'pq',800); commit transaction @trans2 rollback tran @trans2

1 Answers   AllState,


What is sql server used for?

0 Answers  


What are distributed partitioned views?

0 Answers  


how would you improve etl (extract, transform, load) throughput?

0 Answers   LinkedIn,


Explain important index characteristics?

0 Answers  


Categories