December 24, 2025 at 12:00 am
Comments posted to this topic are about the item Celebrating Tomorrow
December 24, 2025 at 1:32 pm
Unfortunately, none of the answers will work as they all return NULL since they fall outside of the acceptable range of values for NCHAR (0 through 0xFFFF).
LinkedIn: https://www.linkedin.com/in/sqlrv
Website: https://www.sqlrv.com
December 25, 2025 at 3:10 pm
It works if your database uses one of the _SC collations. In that case, NCHAR accepts arguments up to 0x10ffff. It's an easy one to miss, and if your database is old (or the script that creates it) it probably doesn't use any of those.
December 29, 2025 at 5:13 pm
Ah, apologies. I'll correct this. I'm sure my test db had an _sc collation
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply