I am trying to pass the searchable columns as parameter to the stored procedure, but it never work
contains(@RTitleColumn, @searchTerm)
I am passing the @RtitleColumn as the first CONTAINS parameter
here is the full query
SELECT Lid As ItemID, Lhits As Hits, LImageID As ImageID, LNAME As Title
, LCategory AS CategoryID, Lactive AS isActive,LRate AS SumRate,LRAteNo AS CommentCount,
ROW_NUMBER() OVER (ORDER BY LID desc) AS RowRank
FROM dbo.tblRecipes
where
contains(@RTitleColumn, @searchTerm) and (@Activeflag is null or LActive=@Activeflag)