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.
本文转自cnn23711151CTO博客,原文链接:http://blog.51cto.com/cnn237111/545987 ,如需转载请自行联系原作者