0
我已經創建了一個全文搜索目錄,其中包含此目錄中某個表上的一些索引。如何獲得有關創建的全文搜索索引的使用情況的信息?SQL Server全文搜索索引使用情況
我已經創建了一個全文搜索目錄,其中包含此目錄中某個表上的一些索引。如何獲得有關創建的全文搜索索引的使用情況的信息?SQL Server全文搜索索引使用情況
檢索用戶掃描爲full text search指數與sys.dm_db_index_usage_stats至今:
SELECT FTSC.name AS CatalogName,
T.name AS TableName,
C.name AS ColumnName,
FTSIU.user_scans,
FTSIU.last_user_scan
FROM sys.fulltext_catalogs AS FTSC
JOIN sys.fulltext_indexes AS FTSI ON FTSC.fulltext_catalog_id = FTSI.fulltext_catalog_id
JOIN sys.dm_db_index_usage_stats AS FTSIU ON FTSI.object_id = FTSIU.object_id AND FTSI.unique_index_id = FTSIU.index_id
JOIN sys.tables AS T ON FTSI.object_id = T.object_id
JOIN sys.columns AS C ON FTSI.object_id = C.object_id
AND FTSI.unique_index_id = C.column_id
WHERE FTSIU.database_id = DB_ID()
這些是有用的https://msdn.microsoft.com/en-in/library/ms174971.aspx – TheGameiswar