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

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 full-text catalog

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-05-16 : 10:25:02
Darren writes "I have setup a full-text catalog in sql server 2000. I want to do variable substitution, this should be done like this I believe:


use tracker1
go
declare @keywords varchar(100)
set @keywords = 'darren'
Select * from TaskNotes tn (NOLOCK) where Contains(tn.TaskNotes, @keywords)


but this does not work, if I do this:

use tracker1
go
declare @keywords1 varchar(100)
set @keywords1 = 'darren'
Select * from TaskNotes tn (NOLOCK) where Contains(tn.TaskNotes, 'darren')

then it works (just to show that the index is actually setup correctly and populated.

Any ideas?

Thanks in advance

Darren"
   

- Advertisement -