SQL: How to limit characters in a SQL Server string when varchar(n) won't work
In a recent post, I talked about how varchar(10) doesn’t mean up to 10 characters, particularly since the introduction of UTF-8 in SQL Server 2019.
So given I do want to limit the number of characters in strings at times, how exactly should I now do that?
A plan takes shape ?
One of my current plans is to do this:
Step 1: Start by forgetting that the number in brackets for the string data types is really relevant to a developer in any way.
2019-08-01