Re: Find out which table columns are included
- From: "Alan" <alanpltseNOSPAM@xxxxxxxxxxxx>
- Date: Tue, 16 May 2006 10:48:28 +1000
Hi,
This is my code:
Use Pubs
EXEC sp_fulltext_catalog 'Cat_Employee', 'create'
EXEC sp_fulltext_table 'employee', 'create', 'Cat_Employee', 'pk_emp_id'
EXEC sp_fulltext_column 'employee','fname','add', 0
EXEC sp_fulltext_column 'employee','lname','add', 0
EXEC sp_fulltext_column 'employee','pub_id','add', 0
EXEC sp_fulltext_table 'employee','activate'
EXEC sp_fulltext_catalog 'Cat_Employee', 'start_full'
EXEC sp_fulltext_table 'employee','start_change_tracking'
EXEC sp_fulltext_table 'employee','start_background_updateindex'
I go to EM and status of the catalog is Idle
and the Item count is 0 on the Status tab.
"Jack" <cawoodm@xxxxxxxxx> wrote in message
news:1147705632.982544.149410@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Alan
I usually enable fulltext indexing on a table with the following
template:
USE MyDatabase
EXEC sp_fulltext_database 'enable'
EXEC sp_fulltext_catalog 'MyTable_Fulltext', 'create'
EXEC sp_help_fulltext_catalogs 'MyTable_Fulltext'
EXEC sp_fulltext_table 'MyTable', 'create', 'MyTable_Fulltext',
'MyTable_PK'
EXEC sp_fulltext_column 'MyTable', 'MyBinaryColumn', 'add', 0,
'MyFilenameColumn'
EXEC sp_fulltext_column 'MyTable', 'MyTextColumn1', 'add', 0
EXEC sp_fulltext_column 'MyTable', 'MyTextColumn2', 'add', 0
EXEC sp_fulltext_column 'MyTable', 'MyTextColumn3', 'add', 0
(note: google will wrap lines 5 & 6)
Using this, it's up to you to specify which columns are indexed.
Jack
.
- Follow-Ups:
- Re: Find out which table columns are included
- From: Hilary Cotter
- Re: Find out which table columns are included
- References:
- Find out which table columns are included
- From: Alan
- Re: Find out which table columns are included
- From: Jack
- Find out which table columns are included
- Prev by Date: Re: Find out which table columns are included
- Next by Date: Re: Full-text Search, Query returns empty
- Previous by thread: Re: Find out which table columns are included
- Next by thread: Re: Find out which table columns are included
- Index(es):
Relevant Pages
|