We recently moved an ASP.NET MVC website to a new provider and found out that the MVC application is no longer connecting to SQL Server database. That was surprising because it was up and running with previous provider without any issues.
Below is the exception I got while connecting to SQL Server:
Login failed for user 'IFC\WIN5177$'.
That took quite sometime to figure out what was the issue. And, I finally fixed by setting Integrated Security=False; in the connection string,
Hope this helps.
Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can’t be re-created or enabled the option Prevent saving changes that require the table to be re-created.
Did you ever got this warning dialog box, when you try to save a Table after modifying through design-view in Sql Server 2008. You will encounter this with fresh installation of Sql Server and when tried to save an already created Table, after modification.
That’s because when you do Table modifications through the Design-View, tables are internally dropped and re-created. The reason why you get this error! However, you can by-pass this error by deselecting - Prevent saving changes that require table re-creation from Tools –> Options –> Designers. Check the below screenshot.
Hope this helped.