"Rob Wahmann" <ro*@dotcomstudio.biz> wrote in message
news:E8******************@newssvr26.news.prodigy.c om...
Hello - I'm using the following syntax:
WHERE pages.ParentID=0 AND CONTAINS(pages.regionID,'#request.thisRegion#')
...and I get the folowing error:
[SQLServer JDBC Driver][SQLServer]Execution of a full-text operation
failed. A clause of the query contained only ignored words.
I'm trying to see if a simple column which contains comma delimited
numbers contains the variable passed as request.thisRegion. Can anyone tell me
what I'm doing wrong? I appreciate your assistance!
TIA - Rob
Assuming that your parameter substitution is working correctly, are you
sending a query like this to the database?
WHERE pages.ParentID=0 AND CONTAINS(pages.regionID,'1')
The digits 1 to 9 are in the ignored words file for full-text (noise.enu,
assuming you're using US English), so you may be able to get the result you
want by removing them from the file. If this doesn't help, you may want to
post in microsoft.public.sqlserver.fulltext for help.
However, if you're trying to match '1' to column values such as '1,2,3,4',
then you have a fundamental design issue. You should not have multiple
values in a single column, as this goes against basic relational design
principles. It would be better to avoid full-text searching, and instead
normalize your data model, which will be easier to work with and faster.
Although since you haven't given much background information, you may of
course have a good reason for this approach.
Simon