Which inbuilt SP is used to parse the values from XML document
-
sp_xml_postdocument
-
sp_xml_readdocument
-
sp_xml_loaddocument
-
sp_xml_preparedocument
D
Correct answer
Explanation
sp_xml_preparedocument is the correct system stored procedure that parses an XML document and returns a handle that can be used with OPENXML. The other options are虚构的 names that don't exist in SQL Server. After use, the document handle should be freed with sp_xml_removedocument to avoid memory leaks.