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

推荐订阅源

罗磊的独立博客
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
MyScale Blog
MyScale Blog
M
MIT News - Artificial intelligence
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
The Blog of Author Tim Ferriss
Martin Fowler
Martin Fowler
博客园 - 【当耐特】
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
WordPress大学
WordPress大学
Google DeepMind News
Google DeepMind News
C
Check Point Blog
Last Week in AI
Last Week in AI
F
Fortinet All Blogs
博客园 - 聂微东
Blog — PlanetScale
Blog — PlanetScale
H
Help Net Security
GbyAI
GbyAI
云风的 BLOG
云风的 BLOG

博客园 - "鸟巢"

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