Skip to content

Latest commit

 

History

History
63 lines (48 loc) · 3.28 KB

sys-dm-db-fts-index-physical-stats-transact-sql.md

File metadata and controls

63 lines (48 loc) · 3.28 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs monikerRange
sys.dm_db_fts_index_physical_stats (Transact-SQL)
sys.dm_db_fts_index_physical_stats (Transact-SQL)
rwestMSFT
randolphwest
02/24/2023
sql
system-objects
reference
sys.dm_db_fts_index_physical_stats_TSQL
dm_db_fts_index_physical_stats
dm_db_fts_index_physical_stats_TSQL
sys.dm_db_fts_index_physical_stats
sys.dm_db_fts_index_physical_stats dynamic management view
TSQL
=azuresqldb-current||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current

sys.dm_db_fts_index_physical_stats (Transact-SQL)

[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance]

Returns a row for each full-text or semantic index in each table that has an associated full-text or semantic index.

Column name Type Description
object_id int Object ID of the table that contains the index.
fulltext_index_page_count bigint Logical size of the extraction in number of index pages.
keyphrase_index_page_count bigint Logical size of the extraction in number of index pages.
similarity_index_page_count bigint Logical size of the extraction in number of index pages.

General Remarks

For more information, see Manage and Monitor Semantic Search.

Metadata

For information about the status of semantic indexing, query the following dynamic management views:

Permissions

On [!INCLUDEssNoVersion_md] and SQL Managed Instance, requires VIEW SERVER STATE permission.

On SQL Database Basic, S0, and S1 service objectives, and for databases in elastic pools, the server admin account, the Microsoft Entra admin account, or membership in the ##MS_ServerStateReader## server role is required. On all other SQL Database service objectives, either the VIEW DATABASE STATE permission on the database, or membership in the ##MS_ServerStateReader## server role is required.

Permissions for SQL Server 2022 and later

Requires VIEW SERVER PERFORMANCE STATE permission on the server.

Examples

The following example shows how to query for the logical size of each full-text or semantic index in every table that has an associated full-text or semantic index:

SELECT * FROM sys.dm_db_fts_index_physical_stats;  
GO  

See Also

Manage and Monitor Semantic Search