You can create a table that has one or more columns of type XML. Query execution processes each XML instance at runtime, so a mechanism for indexing XML columns is provided to speed up queries. Use the SQL Server Table XML Index Editor to define the XML columns participating in the table XML index in either a SQL Server 2005, 2008, or 2012 physical model.
To define SQL Server table XML indexes
The SQL Server Table XML Index Editor opens.
Note: Click New on the toolbar to create a new table XML index. Use the Enter filter text box to filter a very large list of XML indexes to quickly locate the one that you want to define.
Displays the table XML index name. You can change the table XML index name in this field.
Specifies the XML column on which to base the table XML index.
Specifies if the XML column is the primary, or first, table XML index.
Specifies a secondary table XML index type. Select one of the following types if you want to specify a secondary table XML index:
Note: Before you can specify a secondary table XML index, you must have specified a primary table XML index.
For Value
Specifies to create a secondary table XML index on columns where key columns (node value and path) are of the primary table XML index.
For Path
Specifies to create a secondary table XML index on columns built on node values and path values in the primary table XML index. In this secondary table XML index the node and path values are the key columns that enable effective path searches.
For Property
Specifies to create a secondary table XML index on columns (PK, node value, and path) of the primary table XML index where PK is the primary key of the base table.
Generates SQL during forward engineering. Clear the check box if you do not want to generate SQL.
Defines a percentage to indicate how full the database makes the leaf level of each index page during index creation or rebuild. Enter a percentage in this field.
Specifies whether index padding is used.
Specifies whether to store temporary sort results in tempdb or in the same database as the index.
Specifies whether statistics are recomputed.
Specifies whether the table XML index is dropped and rebuilt. Select the check box to enable this option.
Specifies whether row locks are allowed when the table XML index is accessed.
Specifies whether page locks are allowed when the table XML index is accessed.
Defines the number of processors used in a parallel plan execution. Enter a number in this field.
The table XML index is defined and the SQL Server Table XML Index Editor closes.
Copyright © 2013 CA.
All rights reserved.
|
|