• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
我要飞的更高!
一步一个脚印!
博客园    首页    新随笔    联系   管理    订阅  订阅

SQL Server 2005 Full-Text Index 入门

最近在做一个项目要求要用到SQL Server 2005 Full-Text Index 来做全文搜索,上网收集了些资料。

 

SQL Server 2005 Full-Text Index 入门

作者:朱之光


1、Full-Text Index 服务
首先确保安装了Full-Text Index服务并启动该服务

2、为某个表启用Full-Text Index
在Management Studio中选中某个Table,点右键,Full Text Index->Define Full-Text Index
选择需要作Full-Text的字段,
定义更新方式/周期

3、使用Full-Text Index查询
select * from person.address where contains(ADdressLine1, 'SHOE')

4、在没有设置Full-Text Index的Table以及Column上不支持 contains查询

Cannot use a CONTAINS or FREETEXT predicate on table or indexed view 'person.address' because it is not full-text indexed.

Cannot use a CONTAINS or FREETEXT predicate on column 'AddressLine1' because it is not full-text indexed.

 

本文来自:http://larryzhu.bokee.com/6388022.html

posted @ 2008-10-09 18:22  "鸟巢"  阅读(1464)  评论(2)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3