I'm implementing a command with full-text search on SQL Server and I'm having problems to build a dynamic query like this:
CONTAINS (MyTable, '@param1 AND @param2 AND NOT @param3')
So I found an alternative making a sequence of CONTAINS command, like this:
CONTAINS (MyTable, @param1)
AND CONTAINS (MyTable, @param2)
AND NOT CONTAINS (MyTable, @param1)
My question is: is it a problem to perform a SQL command with many CONTAINS
command instead of only one like the first example?