varchar(max) MS SQL Server 2000, problems?

前端 未结 4 1295
傲寒
傲寒 2021-01-02 01:52

I\'ve inherited a asp.net website project that currently runs SQL Server 2000 as its backend.

I\'ve been doing some databases changes on a local copy of the db using

4条回答
  •  悲哀的现实
    2021-01-02 02:07

    This depends on your needs. You can use a TEXT column instead of VARCHAR(MAX) but you have to be sure that your implementation doesn't need to search on that field, as you cannot do like comparisons on TEXT and NTEXT fields.

    If you can limit yourself to 8000 characters, I would use a VARCHAR(8000) column to store the information.

提交回复
热议问题