many thanks for your code example.
But thank ytou very much for the time you took to answer my question.
"Hilary Cotter" <hilary.cotter@gmail.com> wrote in message
news:e%23msOZZKFHA.656@TK2MSFTNGP14.phx.gbl...
> Create Table tblJobsDataWareHouse
> (uid int not null identity constraint primarykey4 primary key,
> fldRequirementshtm char(20),
> fldJobTitle char(20),
> fldCompanyName char(20))
>
> insert into tblJobsDataWareHouse
> (fldRequirementshtm,fldJobTitle,fldCompanyName)
> values ('test',null,null)
> insert into tblJobsDataWareHouse
> (fldRequirementshtm,fldJobTitle,fldCompanyName)
> values (NULL,'test',null)
> insert into tblJobsDataWareHouse
> (fldRequirementshtm,fldJobTitle,fldCompanyName)
> values (NULL, NULL,'test')
> insert into tblJobsDataWareHouse
> (fldRequirementshtm,fldJobTitle,fldCompanyName)
> values (NULL, NULL,'rest')
> GO
> sp_fulltext_database 'enable'
> GO
> sp_fulltext_catalog 'test','create'
> GO
> sp_fulltext_table 'tblJobsDataWareHouse', 'create', 'test', 'primarykey4'
> GO
> sp_fulltext_column 'tblJobsDataWareHouse', 'fldRequirementshtm', 'add',
> 1033
> GO
> sp_fulltext_column 'tblJobsDataWareHouse', 'fldJobTitle', 'add', 1033
> GO
> sp_fulltext_column 'tblJobsDataWareHouse', 'fldCompanyName', 'add', 1033
> GO
> sp_fulltext_table 'tblJobsDataWareHouse', 'activate'
> GO
> sp_fulltext_catalog 'test','start_full'
> go
> select * from tblJobsDataWareHouse where contains(*,'test')
> go
> select * from tblJobsDataWareHouse as tbl join (
> select * from
> containstable(tblJobsDataWareHouse,fldRequirementshtm,'test')
> union
> select * from containstable(tblJobsDataWareHouse,fldJobTitle,'test')
> union
> select * from containstable(tblJobsDataWareHouse,fldCompanyName,'test')
> )as ft
> on ft.[key]=tbl.uid
>
>
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
>
http://www.nwsu.com/0974973602.html >
> Looking for a FAQ on Indexing Services/SQL FTS
>
http://www.indexserverfaq.com >
> "Denis" <denis@pharmiweb.com> wrote in message
> news:uVFcITUKFHA.2724@TK2MSFTNGP10.phx.gbl...
>> I looked at what you said but I am not sure how that would work. Let me
>> give you an idea of the type of how i am trying to do the search.
>>
>>
>>
>> -- Old Search
>> --SET @dynQuery = @dynQuery + ' INNER JOIN
>> FREETEXTTABLE(tblJobsDataWareHouse, *, ''' + @Keywords + ''') as KW ON
>> FT_TBL.uID = KW.[KEY]'
>> --SET @RankField = 'KW.RANK'
>>
>>
>> -- NEW SEARCH
>> SET @dynQuery = @dynQuery + ' INNER JOIN
>> FREETEXTTABLE(tblJobsDataWareHouse, fldRequirementshtm, ''' + @Keywords +
>> ''') as KW ON FT_TBL.uID = KW.[KEY] '
>> SET @RankField = 'KW.RANK'
>>
>> SET @dynQuery = @dynQuery + ' FULL OUTER JOIN
>> FREETEXTTABLE(tblJobsDataWareHouse, fldJobTitle, ''' + @Keywords + ''')
>> as
>> KWw ON FT_TBL.uID = KWw.[KEY]'
>> SET @RankField = 'KWw.RANK'
>>
>> SET @dynQuery = @dynQuery + ' FULL OUTER JOIN
>> FREETEXTTABLE(tblJobsDataWareHouse, fldCompanyName, ''' + @Keywords +
>> ''')
>> as KWww ON FT_TBL.uID = KWww.[KEY]'
>> SET @RankField = 'KWww.RANK'
>>
>>
>> I want my new search to look at Title, Description and Company name only,
>> rather than every field that was included And if EITHER of the fields
>> contain the search string i want them displayed.
>>
>>
>
>