sql server - MS SQL - CONTAINS full-text search w/ variable number of values, not using dynamic sql -
i've created full-text indexed column on table.
i have stored procedure may pass value of variable "search text". want search "search", "this" , "text" within full-text column. number of words search variable.
i use like
where column '%search%' or column list '%this%' or column '%text%'
but require me use dynamic sql, i'm trying avoid.
how can use full-text search find each of words, presumably using contains, , without converting whole stored procedure dynamic sql?
if have sql table full text search enabled, can use query below.
select * table contains(columnname,'"text1" or "text2" or "text3"' )
see link below details
Comments
Post a Comment