“Update-Database” command fails with TimeOut exception

后端 未结 4 1617
南旧
南旧 2021-02-18 19:37

I\'m using EF migrations and have a table with a lot of data. I need to change MaxLength of a concrete column (it hadn\'t length constraints).

ALTER TABLE MyDb A         


        
4条回答
  •  梦如初夏
    2021-02-18 20:04

    Alternatively script out the change by using

    Update-Database -script
    

    You can then take the script and run it using SQL Management Studio against the database.

提交回复
热议问题