“Update-Database” command fails with TimeOut exception

后端 未结 4 1721
南旧
南旧 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:19

    I just had almost the exact same thing: timeout expired when trying to increase a column length. For me, using update-database had been working just fine an hour ago. The problem turned out to be an open transaction on the database and table I was trying to alter. Once I rolled back that transaction, the update-database command went through without problems.

提交回复
热议问题