Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using CONTAINS in where clause
Message
From
28/03/2011 15:22:56
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01505253
Message ID:
01505279
Views:
24
>The LIKE will find the search value at the beginning of the text only and Contains - any word that matches criteria. It means that Contains is redundant in your case.

That's my point. This is why I found it weird that I made some code at one point that generated such a SQL. In regards to that particular form, we need to support a full text search on the field. So, the main SQL will have the Contains as is but I will remove the second part of the where clause.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform