Maximum row size in SQLServer

When I execute the command below

CREATE TABLE [CST_SAY3] (
 [BAS_ID] [int],
 [PRO_DETAIL] [Nvarchar] (4000) ,
 [REMARK] [Nvarchar] (3000)
) ON [PRIMARY]
GO

It will make a warning

Warning: The table 'CST_SAY3' has been created
but its maximum row size (14029) exceeds the maximum number
of bytes per row (8060).
INSERT or UPDATE of a row in this table will fail if the
resulting row length exceeds 8060 bytes.

Although I know the reason (In Microsoft® SQL Server™, the maximum allowable size of a row in a table is 8060 bytes. A row cannot be split across data pages. A data page is 8 KB in size and consists of the data row and some internal data structures.)  , I don't know why the maximum row size is
14029, a field is Nvarchar(4000), the bytes is 8000, another field is Nvarchar(3000), the bytes is 6000,
the last field is int , why it's bytes is 29?
 Can someone give me the answer, thanks.

转载于:https://www.cnblogs.com/flyinsky/archive/2004/11/01/59245.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值