Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

徵狀

在 Microsoft SQL Server 2012 Service Pack 2 (SP2)和 SQL Server 2014 SP1 中,新的動態管理函式(DMF) sys.dm_fts_index_keywords_position_by_document 是在已編制索引的檔中公開關鍵詞位置資訊。 新的 DMF 規格提供如下:

Select * from sys.dm_fts_index_keywords_position_by_document(     DB_ID('database_name'),     OBJECT_ID('table_name') ) 

注意您可以在 document_id 上新增謂詞,如下列範例查詢所示,且 SQL Server 將以有效的方式執行查詢。

Select * from sys.dm_fts_index_keywords_position_by_document(     DB_ID('database_name'),     OBJECT_ID('table_name') ) where document_id = 'id'

DMF 會輸出特定檔的索引關鍵字以及位置資訊。 傳回的資料表如下所示:

左欄

資料類型

巨集定義

關鍵字

varbinary(128)

indexed 關鍵字

display_term

nvarchar(8000)

內部全文外觀

column_id

Int

欄識別碼

document_id

Bigint

檔識別碼

位置

Bigint

位置資訊

解決方案

SQL Server 2014 的 Service pack 資訊

若要解決此問題,請取得 SQL Server 2014 的 Service Pack 1。

如需 SQL Server 2014 Service Pack 1 (SP1)的詳細資訊,請參閱 在 Sql server 2014 Service pack 1 中修正的錯誤

SQL Server 2012 的 Service pack 資訊

若要解決此問題,請取得最新的 Microsoft SQL Server 2012 service pack。如需詳細資訊,請按一下下列文章編號,以查看 Microsoft 知識庫中的文章:

2755533 如何取得最新的 SQL Server service pack 2012

狀態

Microsoft 已確認<適用於>一節所列的 Microsoft 產品確實有上述問題。

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×