I have declared a column of type NVARCHAR(MAX) in SQL Server 2008, what would be its exact maximum characters having the MAX as the length?
I have declared a column of type NVARCHAR(MAX) in SQL Server 2008, what would
Share
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.
The max size for a column of type
NVARCHAR(MAX)is 2 GByte of storage.Since
NVARCHARuses 2 bytes per character, that’s approx. 1 billion characters.Leo Tolstoj’s War and Peace is a 1’440 page book, containing about 600’000 words – so that might be 6 million characters – well rounded up. So you could stick about 166 copies of the entire War and Peace book into each
NVARCHAR(MAX)column.Is that enough space for your needs? 🙂