I have 2 SQL statements that query (microsoft full text indexing) that were written for an asp classic site. They contain some quotation marks and visual studio in c# does not accept them the way they are.
I need to change the variable myvalue to @myvalue however I do not know which qoutation marks are needed (or at all since c# doesn't accept) or how to format its use with c#. For example, what to keep and what not to keep or change etc.
SELECT * FROM thistable AS FT_TBL
INNER JOIN CONTAINSTABLE(thistable, searchindex, '""" & myform & "*""', 50) AS KEY_TBL
ON FT_TBL.ID = KEY_TBL.[KEY]
WHERE tropic='current'
ORDER BY KEY_TBL.RANK DESC
SELECT * FROM thistable AS FT_TBL
INNER JOIN FREETEXTTABLE(thistable, searchindex, '" & myform & "', 50) AS KEY_TBL
ON FT_TBL.ID = KEY_TBL.[KEY]
WHERE tropic='current'
ORDER BY KEY_TBL.RANK DESC