Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Full text search error trapping 1

Status
Not open for further replies.

McLennanN

Programmer
Jan 19, 2001
2
GB
I need to do a full text search given a word input by a user. However for simple words like 'the' the full text search returns the error
'The query contained only ignored words.'
How can I trap this error and return the results of an alternative query.

 
the sintax is
select somevalues from sometable
where somecolumn like '%xxx%' John Fill
1c.bmp


ivfmd@mail.md
 
You do not understand.
I want to use full text search. The problem is
if the following search is run
SELECT Indexes from IndexTable where
CONTAINS(Indexes,' FORMSOF (INFLECTIONAL,"the")

the error 'The query contained only ignored words.' occurs which I would like to trap so i can return the results
of

SELECT Indexes from IndexTable where Indexes like '%the%'

instead. Does anybody know how to trap the error return in Transact SQL?



 
try this one. Maybe it will help.
select ..... from ... where column in(select '%' + column + '%' from .....) John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top