Assume that you execute a statement that contains a LIKE operator with the collation Japanese_XJIS_100_CI_AS in Microsoft SQL Server 2008 R2, SQL Server 2012, or SQL Server 2014. There is a Japanese repeat character 'ー' (Cho-On) in the LIKE pattern. When you execute the statement, unmatched LIKE pattern can be treated as matched. For example, N'BAー1' does not match N'%AB1', when you execute the following statement:
if (N'BAー1' like N'%AB1%' Collate Japanese_XJIS_100_CI_AS)
print 'Japanese_XJIS_100_CI_AS : BAー1 like %AB1% --> match'
The result is matched.
The issue occurs because the Japanese repeat char is processed incorrectly.
The issue was first fixed in the following cumulative update of SQL Server.
Cumulative Update 2 for SQL Server 2012 SP2 /en-us/help/2983175
Cumulative Update 12 for SQL Server 2012 SP1 /en-us/help/2991533
Cumulative Update 3 for SQL Server 2014 /en-us/help/2984923
Cumulative Update 13 for SQL Server 2008 R2 SP2 /en-us/help/2967540
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.