Question
DECLARE @parent HierarchyId = HierarchyId::GetRoot()
INSERT INTO H (Node,ID,Name) VALUES (@parent.GetDescendant(NULL,NULL),2,'Johnny')
a.
Takes 2 arguments
b.
Takes 3 arguments
c.
Takes 4 arguments
d.
All of the mentioned
Posted under SQL Server
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is purpose of GetDescendant method in the following code?
Similar Questions
Discover Related MCQs
Q. Which of the code deletes node H using hierarchical data type?
View solution
Q. Which of the following code will not throw an error?
View solution
Q. Which of the reasons will force you to use XML data model in SQL Server?
View solution
Q. Which of the following is not a XML storage option?
View solution
Q. The choice of XML technology, native XML versus XML view, generally depends upon the following factors?
View solution
Q. In which of the following scenario, using XML native storage would be inappropriate?
View solution
Q. XML View Technology is useful in the following situations?
View solution
Q. What is the hybrid model in SQL Server?
View solution
Q. Reasons to use native XML features in SQL Server instead of managing your XML data in the file system would be:
View solution
Q. Which of the following part of the XML data stored in an XML column is very important for locking?
View solution
Q. XML datatype was introduced in which of the following versions of SQL Server?
View solution
Q. Which of the following feature of SQL Server was used before XML technology for semi structured data?
View solution
Q. What are Catalog Views for XML?
View solution
Q. Which of the following following is used for retrieving XML Schema Collections?
View solution
Q. What is index type for XML index entries?
View solution
Q. The space use of XML indexes can be found in the table-valued function named?
View solution
Q. Contents of sys.xml_schema_collections are _____________
View solution
Q. Which of the following statement would import additional schema or schema components into an existing collection object?
View solution
Q. Which operation cannot be performed on XML schema collection?
View solution
Q. Can we use untyped XML data type in the following situations?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond SQL Server? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!