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
In my case the issue was caused by a very large query which timed out in EF but was able to complete in SSMS.
The answer which suggests Update-Database -script
did not work for me, it gave another error message.
For me, I did the following:
Disclaimer: This might not work for all cases, because it depends on what particular query is slowing you down. For me, it worked.