Groups | Blog | Home
all groups > sql server full text search > february 2004 >

sql server full text search : Search more than one cloumn



Hank
2/1/2004 8:11:07 PM
Hi,
I have fulltext indexed several columns in a table, how do I search two or more columns but not all the columns?

Hilary Cotter
2/2/2004 8:11:29 AM
you have to do something like select * from tablename where contains(Col1, '
"SearchPhrase" ') or contains(Col2, ' "SearchPhrase" ')

You would be better off to have a child table with only the columns you want
to query and to index that child table. Part this table in a different
catalog to take advantage of the thread limit per catalog.


[quoted text, click to view]

Hank
2/2/2004 8:11:08 PM
Hi,
Thanks for the tip.

AddThis Social Bookmark Button