How would you take an arbitrary list of strings (of the form "%[text]%") and a database column, and turn them into a SQL query that does a LIKE comparison for each string in the list?
An example: I have three strings in my list, "%bc%", "%def%" and "%ab%". This builds the query:
([ColumnName] LIKE "%bc" AND [ColumnName] LIKE "%def%") AND [ColumnName] LIKE "%ab%"
A C# example would be excellent, but feel free to write it in the language of your choice.