I think I'm being very slow, I have a query:
SELECT K.RANK, physicalName, DocText, FileType
FROM Documents AS Docs
INNER JOIN CONTAINSTABLE(
Documents,DocText, 'ISABOUT (pages Weight(0.7))'
) AS K
ON Docs.DocumentID = K.[KEY]
ORDER BY K.RANK;
It works in MSSQL and if I do this the repeater is filled:
SqlCommand objCommand = new SqlCommand("SELECT K.RANK, physicalName, DocText, FileType FROM Documents AS Docs INNER JOIN CONTAINSTABLE(Documents,DocText, 'ISABOUT ( pages Weight(0.7) )') AS K ON Docs.DocumentID = K.[KEY] ORDER BY K.RANK", objConn);
BUT when I try and replace the search text with a parameter it gives me no results:
SqlCommand objCommand = new SqlCommand("SELECT K.RANK, physicalName, DocText, FileType FROM Documents AS Docs INNER JOIN CONTAINSTABLE(Documents,DocText, 'ISABOUT ( @SearchParams )') AS K ON Docs.DocumentID = K.[KEY] ORDER BY K.RANK", objConn);
objCommand.Parameters.AddWithValue("@SearchParams", "pages Weight(0.7)");
What am I doing wrong?