Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Compare 2 cols using FT Search for similar match
 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  
 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