Why not use varchar(max)?

后端 未结 8 2014
广开言路
广开言路 2020-12-05 17:03

I\'m a bit old school when it comes to database design, so I\'m totally for using the correct data sizes in columns. However, when reviewing a database for a friend, I notic

8条回答
  •  庸人自扰
    2020-12-05 17:28

    The diff is in next:
    VARCHAR(X) can be indexed and stored in the MDF/NDF data file.
    VARCHAR(MAX) can't be indexed because can reach high volume and then will be stored as a seperated file and not in the MDF/NDF data file.

提交回复
热议问题