I use the following query to return results from a table using full-text search. In SQL2000, only one or all of the columns in a table could be searched. Is this possible in SQL 2008?
I would like to look for two tables: βProblem and Solutionβ (both indexed and in the same table):
DECLARE @topRank int set @topRank=(SELECT MAX(RANK) FROM FREETEXTTABLE([Support_Calls], Problem, 'test', 1)) SELECT [ID] AS [Call No],Company_Name, Problem, Solution, CONVERT(VARCHAR(20),CAST((CAST(ftt.RANK as DECIMAL)/@topRank * 100) AS DECIMAL(13,0))) + '%' as Match FROM [Support_Calls] INNER JOIN FREETEXTTABLE([Support_Calls], Problem, 'test') as ftt ON ftt.[KEY]=[ID] ORDER BY ftt.RANK DESC;
From what can I see that FREETEXTTABLE does not accept more than one column?
sql tsql
madlan
source share