SQL Server

3 notes · 18 Nov 2026 – 26 Nov 2026

Week 48

23–29 Nov 2026

2 notes

  1. SQL Server CHECK ... IN (...) is case-insensitive under the default collation

    A CHECK constraint that lists the allowed string values of an EF Core enum accepted wrongly cased values, because SQL Server's default collation compares case-insensitively, and the binary collation that fixes it does not exist in SQLite.

  2. Paged EF Core search with IN-subquery hits a SQL Server row-goal trap

    A paged EF Core search that filters by an IN subquery took about 25 seconds on SQL Server, because OFFSET/FETCH set a row goal and the optimizer scanned the sort index with a seek per row instead of using the token index.

Week 47

16–22 Nov 2026

1 note

  1. Guid.CreateVersion7() keys are not insert-ordered in a SQL Server clustered index

    SQL Server sorts uniqueidentifier values by their last six bytes first, so version 7 GUIDs still land on random pages of a clustered index.

All topics