SQL: Think that varchar(10) means 10 characters ? If so, think again!
If you read almost any book on the SQL language, you’ll see definitions where:
varchar(n)
means a varying length character data type, and where n is the number of characters it can store.
SQL Server 2019 changes things
If that’s how you’ve seen it, SQL Server 2019 is going to change your understanding. The product team have pointed out that that n was really the number of bytes, and that “it never was the number of characters”.
2019-07-25

