I am using full text searches in SQL Server7 DB. All seems to work except for queries with the FORMSOF verb. I get the following error:
OLEDB Error Code = 170
Line 1: Incorrect syntax near 'FORMSOF'
I cut and paste the query into SQL Server7's Query Analyzer tool and it runs wtihout any errors. Here is the query:
SELECT DISTINCT "Name"= Name , "Price"=min_price.minprice, "Supplier"=Products.Supplier, "Sku"= SKU ,
"Image Name"= ImageName , "ProductId"=Products.Product_Id
FROM Products
INNER JOIN FullProductDescr ON FullProductDescr.Prod_Id=Products.Product_Id
INNER JOIN min_price ON min_price.productid=Products.Product_Id
INNER JOIN ProductKeyWords ON ProductKeyWords.Prod_Id=Products.Product_Id
INNER JOIN WordList ON ProductKeyWords.KeywordNbr=WordList.WordValue
INNER JOIN EASearch ON EASearch.GroupWordValue=WordList.GroupWordValue
WHERE (Contains( Name ,'FORMSOF(INFLECTIONAL,glass)')
or Contains(FullProductDescr.Descr,'FORMSOF(INFLECTIONAL,glass)'))
and min_price.minprice<40 and EASearch.CategoryID in (100, 101, 102)
ORDER BY Products.Supplier, Products.Product_Id
Thank you for your help>
Nic
OLEDB Error Code = 170
Line 1: Incorrect syntax near 'FORMSOF'
I cut and paste the query into SQL Server7's Query Analyzer tool and it runs wtihout any errors. Here is the query:
SELECT DISTINCT "Name"= Name , "Price"=min_price.minprice, "Supplier"=Products.Supplier, "Sku"= SKU ,
"Image Name"= ImageName , "ProductId"=Products.Product_Id
FROM Products
INNER JOIN FullProductDescr ON FullProductDescr.Prod_Id=Products.Product_Id
INNER JOIN min_price ON min_price.productid=Products.Product_Id
INNER JOIN ProductKeyWords ON ProductKeyWords.Prod_Id=Products.Product_Id
INNER JOIN WordList ON ProductKeyWords.KeywordNbr=WordList.WordValue
INNER JOIN EASearch ON EASearch.GroupWordValue=WordList.GroupWordValue
WHERE (Contains( Name ,'FORMSOF(INFLECTIONAL,glass)')
or Contains(FullProductDescr.Descr,'FORMSOF(INFLECTIONAL,glass)'))
and min_price.minprice<40 and EASearch.CategoryID in (100, 101, 102)
ORDER BY Products.Supplier, Products.Product_Id
Thank you for your help>
Nic