Implications of nvarchar (50) vs nvarchar (max)

前端 未结 3 570
太阳男子
太阳男子 2020-12-17 09:17

What are the general storage and performance differences between the below two tables if their only difference is nvarchar(50) vs. nvarchar(max) an

3条回答
  •  一向
    一向 (楼主)
    2020-12-17 09:46

    nvarchar max is for columns up to 2GB. So essentially it takes up more resources. You are better off using the nvarchar(50) if you know you aren't going to need that much space. each character is about 2 bytes so with 2 GB thats 1 billion characters...

提交回复
热议问题