Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using CONTAINS in where clause
Message
 
 
À
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:
01505280
Vues:
28
>>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.

Right, exactly.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform