I find it difficult to understand why a SELECT with a LIKE condition on emoji at level 4 B ( http://emojipedia.org/eyes/ ) returns all the rows in the table.
-- The DB collation is Finnish_Swedish_CI_AS CREATE TABLE
The result of the first selection is a single line of emoji. However, the result of the second choice, where the line is marked as UNICODE with the prefix N, is all the lines.
Why does the second choice match all the rows in the table?
Actual scenario I have a web application in which users can search the directory, and if they search emoji, the whole table is returned instead of the correct matching rows.
ASP.NET MVC 5 web application <-> Web Api 2 <-> EF -> SQL Server
Refresh My SQL test is incorrect because @deroby indicated that INSERT must be marked with N '...' for proper installation as Unicode.
Solution . As @deroby stated, it seems that the problem is with matching, changing it to Finnish_Swedish_100_CI_AS seems like everything is working as expected.
select * from
source share