惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
C
Check Point Blog
G
Google Developers Blog
V
Visual Studio Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
有赞技术团队
有赞技术团队
MongoDB | Blog
MongoDB | Blog
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
D
Docker
Hugging Face - Blog
Hugging Face - Blog
The GitHub Blog
The GitHub Blog
博客园 - 三生石上(FineUI控件)
A
About on SuperTechFans
Recent Announcements
Recent Announcements
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
阮一峰的网络日志
阮一峰的网络日志
Stack Overflow Blog
Stack Overflow Blog
Vercel News
Vercel News

博客园 - "鸟巢"

SQL2008安装指南 合并两个DataSet Asp.Net学习资源 VS常用快捷键 VS2003基础知识一 如何管好下属(转载) VS2003中DataBinder.Eval用法范例 - "鸟巢" - 博客园 数据的增删改 传统行业与网络相结合 CSS中position的理解 学习VS2005杂记 Windows Internet服务器安全配置 服务器入侵工具 Ajax 'Sys'未定义错误 转载 .NET工程师求职面试必杀技 分页存储过程 项目管理九大知识体系: 项目负债人手册 中文变问号问题
SQL Server 2005 Full-Text Index 入门
"鸟巢" · 2008-10-09 · via 博客园 - "鸟巢"

最近在做一个项目要求要用到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