sp_help_fulltext_tables_cursor (Transact-SQL)
Uses a cursor to return a list of tables that are registered for full-text indexing.
Important |
|---|
This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Use the new sys.fulltext_indexes catalog view instead. For more information, see sys.fulltext_indexes (Transact-SQL). |
Column name | Data type | Description |
|---|---|---|
TABLE_OWNER | sysname | Table owner. This is the name of the database user that created the table. |
TABLE_NAME | sysname | Table name. |
FULLTEXT_KEY_INDEX_NAME | sysname | Index imposing the UNIQUE constraint on the column designated as the unique key column. |
FULLTEXT_KEY_COLID | int | Column ID of the unique index identified by FULLTEXT_KEY_NAME. |
FULLTEXT_INDEX_ACTIVE | int | Specifies whether columns marked for full-text indexing in this table are eligible for queries: 0 = Inactive 1 = Active |
FULLTEXT_CATALOG_NAME | sysname | Full-text catalog in which the full-text index data resides. |
The following example returns the names of the full-text indexed tables associated with the Cat_Desc full-text catalog.
USE AdventureWorks2008R2;
GO
DECLARE @mycursor CURSOR;
EXEC sp_help_fulltext_tables_cursor @mycursor OUTPUT, 'Cat_Desc';
FETCH NEXT FROM @mycursor;
WHILE (@@FETCH_STATUS <> -1)
BEGIN
FETCH NEXT FROM @mycursor;
END;
CLOSE @mycursor;
DEALLOCATE @mycursor;
GO
Important