Changing the maximum length of a varchar column?

后端 未结 9 1586
[愿得一人]
[愿得一人] 2021-01-30 12:02

I\'m trying to update the length of a varchar column from 255 characters to 500 without losing the contents. I\'ve dropped and re-created tables before but I\'ve never been expo

9条回答
  •  孤城傲影
    2021-01-30 12:42

    As an alternative, you can save old data and create a new table with new parameters.

    In SQL Server Management Studio: "your database" => task => generatescripts => select specific database object => "your table" => advanced => types of data to script - schema and data => generate

    Personally, I did so.

提交回复
热议问题