These are non-clustered index of the primary XML index. There must be a primary xml index before each secondary xml index. Following are some types of secondary xml indexes:
Path Indexes
The path index is built on the path value...
Wednesday, June 4, 2014
Types of XML Indexes used in SQL Server: Speed up Execution
When a query is based on an XML column, the query processor needs to parse the XML data each time the query is executed. In SQL Server, and XML data value can be of a maximum of two gigabytes (GB).
Therefore, the XML values can ...
Tuesday, May 27, 2014
How to Modify XML Data using Functions in SQL Server
Similar to any other type of data, programmer might also need to modify the XML data. To modify data, you can use the modify function provided by the XML data type of the SQL Server. The modify function specifies an XQuery expres...
Monday, May 26, 2014
How to Retrieve XML Data Using XQuery
In addition to FOR XML, SQL Server allows programmer to extract data stored in variables or columns with the XML data type by using XQuery. XQuery is a language that uses a set of statements and functions provided by the XML data...
Sunday, May 18, 2014
How to Retrieve XML Data from a Database Table: SQL
At times, you need to retrieve the relational data from a table into the XML format for reporting purposes or to share the data across different applications. This involves extracting data from a table in the form of well-formed ...
How to Store Typed XML Data in XML Columns: SQL
To store the typed XML data, programmer need to first register the schema associated with the data in the XML schema collection objects in the database. The XML schema collection is an object on the SQL Server that is used to sav...
How to Store XML Data in XML Columns: SQL
At times, Programmer need to store the XML data in its original state in a column of a database table. For example, you need to save the details of customers in the database. The details of individual customers are maintained by ...
Tuesday, May 13, 2014
How to Delete Data from Table or Related Table, SQL
Programmer need to delete data from the database when it is no longer required. The smallest unit that can be deleted from a database is a row. You can delete a row from a table by using the DELETE DML statement. The syntax of th...