Every time I create a table I wonder if there is any performance difference whether I say nvarchar (100) or nvarchar (1000) assuming that actual string size will be less than 100. So is there?
Every time I create a table I wonder if there is any performance difference
Share
According to the documentation:
So, only the actual length of the data entered matters when calculating the storage size.
The documentation doesn’t say why it’s there, but the length parameter is useful because it enforces simple limit constraints (for example, so someone can’t enter 2 GB of text as their “name”).