-- SQL语句: create fulltext catalog FT_Article in path 'D:\DataBase\FullText' -- 存储过程: sp_fulltext_catalog FT_Article, 'create', 'D:\Database\FullText'
-- SQL语句: create fulltext index on T_Article ( BiaoTi, NeiRong ) key index pk_T_Article on FT_Article -- 存储过程: sp_fulltext_table 'T_Article', 'create', 'FT_Article', 'pk_T_Article' sp_fulltext_column T_Article, 'BiaoTi', 'add' sp_fulltext_column T_Article, 'NeiRong', 'add'
select * from T_Article where contains(NeiRong, 'div') select * from T_Article where freetext(NeiRong, 'div')
sp_help_fulltext_catalogs -- 检查数据库有哪些全文目录 sp_help_fulltext_tables FT_Article -- 查看哪些表把全文索引建立在FT_Article下 sp_help_fulltext_columns T_Article -- 查看T_Article表哪些字段配置了全文索引
drop fulltext index on T_Article -- 撤销T-Article上的全文检索 drop fulltext catalog FT_Article -- 撤销全文目录FT_Article