SQL performance: Is there any performance hit using NVarchar(MAX) instead of NVarChar(200)

后端 未结 3 1550
暖寄归人
暖寄归人 2020-12-14 14:28

I am wondering if there is any disadvantage on defining a column of type nvarchar(max) instead of giving it a (smaller) maximum size.

I read somewhere that if the co

3条回答
  •  忘掉有多难
    2020-12-14 15:18

    Choosing nvarchar(max) also can affect the execution plan optimizations that are adapted automatically by the sql server engine.

提交回复
热议问题