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 ,如需轉載請自行聯系原作者