+2 votes
in Sql by
What are types of XML indexes in SQL Server?

1 Answer

0 votes
by

Microsoft SQL Server supports different types of XML indexes. An XML index is different than a relational index. There are basically TWO types of XML Indexes:

  • Primary XML Indexes and
  • Secondary XML indexes.

The Primary XML index is a clustered index on an internal table known as the node table that users cannot use directly from their T-SQL statements. To enhance search performance, we create secondary XML indexes. These create secondary links (RID) at leaf level for existing clustered index based KEY pages. A primary XML index should be created prior to creating the Secondary XML Indexes.

Related questions

0 votes
+2 votes
asked Jan 14, 2022 in Sql by GeorgeBell
+2 votes
asked Jan 14, 2022 in Sql by GeorgeBell
...