SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Compare 2 cols using FT Search for similar match
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

2 Posts

Posted - 11/01/2012 :  14:56:38  Show Profile  Reply with Quote
Thanks very much for your response.

I have a table that i created a Full-Text Search catalog/ index on two different columns within the same table.

I need to create an sproc that performs a search of the two columns and then matches similar rows with a ranking of each.

I have played with some examples using the 'CONTAINSTABLE' function and have got back results but i have had to hard code the search condition just to see if that would result in some relevant data.

I then tried doing something like '"*" NEAR "*"' and that resulted in a empty data set.

What i am really trying to do is just a simple 'column NEAR column' as the search condition.

Any response would be greatly appreciated.


Starting Member

2 Posts

Posted - 11/01/2012 :  15:28:43  Show Profile  Reply with Quote
Here is a query that i played with so far.

SELECT [ftProjects].[ProjectID]
, [ftProjects].[ClientID]
, [ftProjects].[ProjectTitle]
, [ftProjects].[ProjectDescription]
, [keyProjects].RANK
FROM [dbo].[Projects] AS [ftProjects] 
, ([ProjectTitle]
, [ProjectDescription])
, 'Review NEAR Review', 10) AS [keyProjects] 
ON [ftProjects]. [ProjectID] = [keyProjects].[KEY]
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000