I am trying to use the Contains operator. It works fine with test data eg.
WHERE CONTAINS(file,'"*ash*"')
However, I want to get the keyword from a TextBox using something like CONTAINS(file,'"*@key*"'), but this doesnt seem to work. Any suggestions please.
Thanks
The @ is used to declare a variable in SQL. For this reason, it doesn’t need to be inside quotes. For example:
EDIT: If you are passing inline SQL through your code then, I would suggest something like this:
C# Example: