Click here to Skip to main content
15,991,071 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
can anybody help me to understand this two operators in sql server i try
this
SQL
select * from table_name where constains(field_name,'xxxx')
Posted
Updated 7-Oct-15 2:57am
v2
Comments
ZurdoDev 7-Oct-15 8:43am    
What 2 operators? And have you read the documentation?
phil.o 7-Oct-15 9:03am    
There are no operators at all in this query.
There are clauses, three of them.
It would not execute because there is a typo in the CONTAINS function name.
Member 11963532 7-Oct-15 15:29pm    
then how to use them ???
you are right i am also trying and its gives the error like that
'Cannot use a CONTAINS or FREETEXT predicate on table or indexed view 'dbo.Categories' because it is not full-text indexed'

CONTAINS[^]
FREETEXT[^]

After you reading these - carefully, come back and ask some specific questions...
 
Share this answer
 
Comments
Member 11963532 7-Oct-15 15:28pm    
its gives the error
Cannot use a CONTAINS or FREETEXT predicate on table or indexed view 'dbo.Categories' because it is not full-text indexed
Kornfeld Eliyahu Peter 7-Oct-15 15:32pm    
So? Turn on full-text indexes...
Read this article this will give you brief details about Contains Contains[^]

If you want to know about FreeText refer this FreeText[^]

In below link they explain with some samples https://msdn.microsoft.com/en-us/library/ms142583.aspx[^]
 
Share this answer
 
Comments
Member 11963532 7-Oct-15 15:27pm    
its gives the error
Cannot use a CONTAINS or FREETEXT predicate on table or indexed view 'dbo.Categories' because it is not full-text indexed

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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