Click here to Skip to main content
15,891,908 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a table which contain 50000 rows, and i want to search some specific text in One column..

i use Like % %, Method and it give me result in avg 3 min,'

So i use Full text search and it work well

but now My Problem is Full text Search not support Exact Word Search...

so what can i do in this situation..

I Just want that my Query give Result before Server Time Out...

please Help
Posted
Comments
Sergey Alexandrovich Kryukov 18-Jun-14 13:18pm    
Not clear. This post won't make any sense unless you create and show some code samples or otherwise provide sufficient detail on what you are trying to do.
—SA

Yes right, if you could provide some code snippet that would help us to understand your problem better.

But what I understand from your question is, you are trying to find a specific word or phrase in a column, if that is the objective, you could do that using CONTAINS key ward as below;

SQL
SELECT Comments
FROM ProductReview
WHERE CONTAINS(Comments, '"learning curve"')


The above SQL will return all the rows where Comments column has the specific phrase "learning curve", provided there is a full text index for the ProductReview table.

You could get more detail in MSDN site;
http://msdn.microsoft.com/en-us/library/ms142583.aspx
 
Share this answer
 
v2
Comments
Arun kumar Gauttam 18-Jun-14 23:22pm    
thanks it work well
Yes right, if you could provide some code snippet that would help us to understand your problem better.

But what I understand from your code is, you are trying to find a specific word or phrase in a column, if that is the objective, you could do that using CONTAINS key ward as below;

SQL
SELECT Comments
FROM ProductReview
WHERE CONTAINS(Comments, '"learning curve"')


The above SQL will return all the rows where Comments column has the specific phrase "learning curve", provided there is a full text index for the ProductReview table.

You could get more detail in MSDN site;
http://msdn.microsoft.com/en-us/library/ms142583.aspx
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900