Implications of nvarchar (50) vs nvarchar (max)

前端 未结 3 595
太阳男子
太阳男子 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:43

    First and foremost, you won't be able to create indexes on the (max) length columns. So if you are going to store searchable data, ie., if these columns are going to be part of the WHERE predicate, you may not be able to improve the query performance. You may need to consider FullText Search and indexes on these columns in such a case.

提交回复
热议问题