[英]Adding a nvarchar(MAX) Column to my audit table
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; 我有一个审核表,在其中添加了一个名为“ ExtraInfo”的列,该列可能存储空值,或者可能包含例如已分配给组的所有用户名; could be 100, 200 users.
可能是100个,200个用户。 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.
因此,我为该列指定了nvarchar(MAX)类型,因为将来我们的AD用户可能会越来越庞大,并且我不想面对有关列大小的问题。 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? SQL Server 2008 R2是否仅占用nvarchar(max)当前具有的字节,或者即使colum仅包含10个字节甚至为null,它将占用其全部容量?
Is there any disadvantages of using nvarch(max) inside an audit table I am not aware of ? 在我不知道的审计表中使用nvarch(max)有什么缺点吗?
Thnaks Thnaks
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.