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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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