cfqueryparam wildcards in tsql contains search
I would like to implement cfqueryparam for my autocomplete function for a project I'm working on.
Currently the code I have is below and works by passing a argument variable into a tsql query.
SELECT
users.user_id,
users.first_name,
users.last_name
FROM
users
WHERE
CONTAINS(*, '"*#arguments.term#*"')
I would like to protect this by using cfqueryparam such as CONTAINS(*, <cfqueryparam cfsqltype="cf_sql_varchar" value="#arguments.term#">) however the results are not as expected.
