Below line is returning me the value with single quote.
set @SearchStr2= upper(QUOTENAME('%''' + @SearchStr + '''%','''') )COLLATE SQL_Latin1_General_CP1_CS_AS;
Actual Output : '%'NM'%'
Expected Output : '%''NM''%' -- Need 2 single quotes before and after %