What are the storage requirements for nvarchar(X)?
So for example, if the value in a column is much smaller than X, how much is actually stored in the database page?
What are the storage requirements for nvarchar(X)?
So for example, if the value in a column is much smaller than X, how much is actually stored in the database page?
An nvarchar column is the size of the number of unicode characters stored inside + an overhead. The exact size is probably dependant of the SQL server in use.
For Microsoft SQL server "the storage size, in bytes, is two times the number of characters entered + 2 bytes". See: http://msdn.microsoft.com/en-us/library/ms186939.aspx