I have a database table with a column of type nvarchar(max) and the value '17KAAKSPN13'
When querying the table using testcolumn like '%17KA%' no results are returned. If I query using '%17KAA%' I do get a result.
To test this, create a simple table and perform the queries below and see that the second query does not return any results:
Update: Server collation: Danish_Norwegian_CI_AS
CREATE TABLE [dbo].testtable(
testcolumn [nvarchar](max) NULL
)
insert into [dbo].testtable (testcolumn) values('17KAAKSPN13')
SELECT * FROM [dbo].testtable
SELECT * FROM [dbo].testtable WHERE testcolumn like '%17KA%'
Result:

EDIT:
Here is an example of it not working. I'm adding this as an edit because there are many comments and two inappropriate fiddles. The issue seems to have to do with collation.