Ekinlikler
31 Mar 23 - 2 Nis 23
En büyük SQL, Fabric ve Power BI öğrenme etkinliği. 31 Mart – 2 Nisan. 400 ABD doları tasarruf etmek için FABINSIDER kodunu kullanın.
Bugün kaydolunBu tarayıcı artık desteklenmiyor.
En son özelliklerden, güvenlik güncelleştirmelerinden ve teknik destekten faydalanmak için Microsoft Edge’e yükseltin.
Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
Describes how to create a new secondary selective XML index, or alter or drop an existing secondary selective XML index.
You can create a secondary selective XML index using Transact-SQL by calling the CREATE XML INDEX statement. For more information, see CREATE XML INDEX (Selective XML Indexes).
The following example creates a secondary selective XML index on the path 'pathabc'
. The path to index is identified by the name that was given to it when it was created with the CREATE SELECTIVE XML INDEX statement. For more information, see CREATE SELECTIVE XML INDEX (Transact-SQL).
CREATE XML INDEX filt_sxi_index_c
ON Tbl(xmlcol)
USING XML INDEX sxi_index
FOR
(
pathabc
);
The ALTER statement isn't supported for secondary selective XML indexes. To change a secondary selective XML index, drop the existing index and recreate it.
Drop the existing secondary selective XML index by calling the DROP INDEX statement. For more information, see DROP INDEX (Selective XML Indexes).
Recreate the index with the desired options by calling the CREATE XML INDEX statement. For more information, see CREATE XML INDEX (Selective XML Indexes).
The following example changes a secondary selective XML index by dropping it and recreating it.
DROP INDEX Tbl.filt_sxi_index_c
GO
CREATE XML INDEX filt_sxi_index_c
ON Tbl(xmlcol)
USING XML INDEX sxi_index
FOR
(
pathabc
);
Drop a secondary selective XML index using Transact-SQL by calling the DROP INDEX statement. For more information, see DROP INDEX (Selective XML Indexes).
The following example shows a DROP INDEX statement.
DROP INDEX ssxi_index
ON tbl;
Ekinlikler
31 Mar 23 - 2 Nis 23
En büyük SQL, Fabric ve Power BI öğrenme etkinliği. 31 Mart – 2 Nisan. 400 ABD doları tasarruf etmek için FABINSIDER kodunu kullanın.
Bugün kaydolunEğitim
Modül
NoSQL için Azure Cosmos DB'de dizinleri tanımlama - Training
NoSQL için Azure Cosmos DB'de dizinleri ve dizin oluşturma ilkelerini keşfedin.
Sertifikasyon
Microsoft Certified: Azure Cosmos DB Developer Specialty - Certifications
Write efficient queries, create indexing policies, manage, and provision resources in the SQL API and SDK with Microsoft Azure Cosmos DB.
Belgeler
XML dizinlerini bırakma - SQL Server
DROP INDEX Transact-SQL deyiminin mevcut birincil veya ikincil XML'yi ve XML olmayan dizinleri bırakmak için nasıl kullanılabileceğini öğrenin.