alexjamesbrown
Programmer
Hi there,
i have a Full text search on a table... tblProducts
I am trying to query it, to search the descriptions of products..
this is the code i use (or part of it)
strQuery = "Exec spSearchProducts '"&request("keywords")&"'"
Set rsProducts = Server.CreateObject("ADODB.Recordset")
rsProducts.Open strQuery, conn, 1, 1 'Opened as Read-Only
spSearchProducts:
CREATE PROCEDURE spSearchProducts(
@Query VarChar(100)
)
AS
BEGIN
SELECT * from
tblProducts
WHERE
FREETEXT(ProductDescription, @Query)
END
I get this error:
A variable cannot be used to specify a search condition in a fulltext predicate when accessed through a cursor.
Any idea of how to fix it?
Alex
i have a Full text search on a table... tblProducts
I am trying to query it, to search the descriptions of products..
this is the code i use (or part of it)
strQuery = "Exec spSearchProducts '"&request("keywords")&"'"
Set rsProducts = Server.CreateObject("ADODB.Recordset")
rsProducts.Open strQuery, conn, 1, 1 'Opened as Read-Only
spSearchProducts:
CREATE PROCEDURE spSearchProducts(
@Query VarChar(100)
)
AS
BEGIN
SELECT * from
tblProducts
WHERE
FREETEXT(ProductDescription, @Query)
END
I get this error:
A variable cannot be used to specify a search condition in a fulltext predicate when accessed through a cursor.
Any idea of how to fix it?
Alex