Skip to content

Latest commit

 

History

History
65 lines (49 loc) · 2.97 KB

File metadata and controls

65 lines (49 loc) · 2.97 KB
title sp_fulltext_pendingchanges (Transact-SQL) | Microsoft Docs
ms.custom
ms.date 03/06/2017
ms.prod sql
ms.prod_service database-engine, sql-database
ms.reviewer
ms.technology system-objects
ms.topic language-reference
f1_keywords
sp_fulltext_pendingchanges_TSQL
sp_fulltext_pendingchanges
dev_langs
TSQL
helpviewer_keywords
sp_fulltext_pendingchanges
ms.assetid fee042fe-4781-4a33-a01b-d98fb5629f1b
author MikeRayMSFT
ms.author mikeray
monikerRange =azuresqldb-current||>=sql-server-2016||=sqlallproducts-allversions||>=sql-server-linux-2017||=azuresqldb-mi-current

sp_fulltext_pendingchanges (Transact-SQL)

[!INCLUDEtsql-appliesto-ss2008-asdb-xxxx-xxx-md]

Returns unprocessed changes, such as pending inserts, updates, and deletes, for a specified table that is using change tracking.

Topic link icon Transact-SQL Syntax Conventions

Syntax

  
sp_fulltext_pendingchanges table_id  

Arguments

table_id
ID of the table. If the table is not full-text indexed, or change tracking is not enabled on the table, an error is returned.

Result Sets

Column name Data type Description
Key * Is the full-text key value from the specified table.
DocId bigint Is an internal document identifier (DocId) column that corresponds to the key value.
Status int 0 = Row will be removed from the full-text index.

1 = Row will be full-text indexed.

2 = Row is up-to-date.

-1 = Row is in a transitional (batched, but not committed) state or an error state.
DocState tinyint Is a raw dump of the internal document identifier (DocId) map status column.

* The data type for Key is same as the data type of the full-text key column in the base table.

Permissions

Requires membership in the sysadmin fixed server role.

Remarks

If there are no changes to process, an empty rowset is returned.

Full-Text Search queries do not return rows with a Status value of 0. This is because the row has been deleted from base table and is waiting to be deleted from the full-text index.

To find out how many changes are pending for a particular table, use the TableFullTextPendingChanges property of the OBJECTPROPERTYEX function.

See Also

Full-Text Search and Semantic Search Stored Procedures (Transact-SQL)
OBJECTPROPERTYEX (Transact-SQL)