>or it will be like
>"'%office%' OR KeyWord_En Like '%naz%'"
that will not work, as the t-sql will not interprete that the string actually contains any sql.
to do that, you would need dynamic sql, or read up here:
http://www.experts-exchange.com/articles/Database/Miscellaneous/delimited-list-as-parameter-what-are-the-options.htmlyou shall call the procedure with this argument:
"%naz%"
"%office%^%naz%"
%office%^%naz%^%test%"
and your code changes to:
spGetSearchEn
@Criteria nvarchar(2000)
AS
BEGIN
SET NOCOUNT ON;
SELECT t.ID, t.Name_En, t.Description_En
from tbldata t
JOIN dbo.parmsToList(@Criteria,
'^') l
ON t.KeyWord_En Like l.Value
END