您的位置:首页 > 数据库

Full Text Search in SQL 2005

2009-09-15 13:21 435 查看
I issued the commands

USE MyDatabase

EXEC sp_fulltext_database  'enable'

"At this point, the Full Text Search was available in the Management Console"

From here in TSQL :-

--1  Create the catalog (unless you already have)
EXEC sp_fulltext_catalog   'FTCatalog','create'
--2  Add a full text index to a table
EXEC sp_fulltext_table     'Departments', 'create', 'FTCatalog', 'pk_departments'

EXEC sp_fulltext_table     'Employees', 'create', 'FTCatalog', 'pk_employees'
--3  Add a column to the full text index
EXEC sp_fulltext_column    'Departments', 'ProductName', 'add'

EXEC sp_fulltext_column    'Employees', 'Description', 'add'
--4  Activate the index
EXEC sp_fulltext_table     'Departments','activate'

EXEC sp_fulltext_table     'Employees','activate'
--5  Start full population
EXEC sp_fulltext_catalog   'FTCatalog', 'start_full'
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: