I have an audit table, where I added a Column named “ExtraInfo”, this column might store null value or it might contain for example all the usernames that have been assigned to a group; could be 100, 200 users. So I gave this column a Type of nvarchar(MAX), as in the future our AD users might get huger and I do not want to face issues regarding the column size. But I have the following concern:-
Will SQL server 2008 R2 occupy only the bytes that the nvarchar(max) currently have , or it will occupy its full capacity even if the colum only contain 10 bytes or even it is null?
Is there any disadvantages of using nvarch(max) inside an audit table I am not aware of ?
Thnaks
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.