Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Interesting problem
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01350194
Message ID:
01350537
Vues:
21
>Hi everybody,
>
>I'm trying to help someone and I found an interesting problem here http://forums.asp.net/p/1324965/2642788.aspx#2642788
>
>Suppose we have a Stored Procedure where we pass the list of keywords (comma-delimited list) and we want to have a result where the text may contain any of the passed keywords (in that list).
>
>Is it possible to write such a statement or we need to use dynamic query with OR for each keyword?
>
>Thanks in advance.

You could use dynamic sql OR you could create a table function where you could SPLIT that parameter and the join the resulting table to that you want.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform