Varchar(255) to Varchar(MAX)

前端 未结 3 797
[愿得一人]
[愿得一人] 2021-02-04 23:27

Is it possible to change a column type in a SQL Server 2008 database from varchar(255) to varchar(MAX) without having to drop the table and recreate?

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-05 00:19

    You should be able to do it using TSQL.

    Something like

    ALTER TABLE [table] ALTER COLUMN [column] VARCHAR(MAX)
    

提交回复
热议问题