Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using CONTAINS in where clause
Message
De
28/03/2011 15:19:59
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01505253
Message ID:
01505278
Vues:
24
>It does not conflict, it narrows down the results. E.g. if you search for 'BENZ' using full text search, it will be in the results. With your second criteria you'll get this
only record.

Yes, but if I want to search for everything that starts with BENZ only, the Contains is not necessary and slows down the process. In that particular situation, I should only use the second part. But, on that particular one, I just got confirmed that we need to suppor the full text search on that one at that specific location (the form that generates that SQL). So, I would need to adjust the SQL to have Contains at first and narrows down the search as a second step, such as we do here when searching for an exact phrase.
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform