I have a table (name: errors) with lots of rows. some of rows of this table shows in following:
202 16 Invalid type '%s' for WAITFOR. Supported data types are CHAR/VARCHAR, NCHAR/NVARCHAR, and DATETIME. WAITFOR DELAY supports the INT and SMALLINT data types.
203 16 The name '%.*ls' is not a valid identifier.
204 20 Normalization error in node %ls.
205 16 All queries combined using a UNION, INTERSECT or EXCEPT operator must have an equal number of expressions in their target lists.
206 16 Operand type clash: %ls is incompatible with %ls
207 16 Invalid column name '%.*ls'.
instead of strings like '%.*ls', different words can be used. for example i have a string like this:
Invalid column name 'test'.
I want to use full-text search in Microsoft SQL Server 2012 to find most similar string in errors table with (Invalid column name 'test'.) i used below query but this query does not return any output
SELECT *
FROM errors AS A
INNER JOIN
CONTAINSTABLE(errors , text, 'ISABOUT ("Invalid column name ''text''")',
LANGUAGE N'English',10) AS K
ON A.text = K.[KEY]
any idea?