This is probably going to be an elementary question, but I just want to see if I understand the storage of nvarchar correctly.
The Microsoft web site has the following to say about nvarchar.
"Variable-length Unicode character data of n characters. n must be a value from 1 through 4,000. Storage size, in bytes, is two times the number of characters entered. The data entered can be 0 characters in length."
I have the following two question about nvarchar. I just want to verify it is not the length attribute of the column that dictates the storage being used, it's the number of characters entered in the column's field that dictates the storage being used.
Question 1
If I create an nvarchar column with a length of 4000, and someone puts data in the column field containing only one character, then the storage size will be two bytes? (1 character * 2 = number of bytes)
Question 2
If I create an nvarchar column with a length of 4, and someone puts data in the column field containing only one character, then the storage size will still be two bytes? (1 character * 2 = number of bytes)