Can't update with schema compare

Kris Harper picture Kris Harper · Jun 6, 2013 · Viewed 28.7k times · Source

Up until today, I was able to use the Schema Compare feature in Visual Studio 2012 to update a database from a database project. But now, for one project I can do the compare, but the update button is greyed out.

I am able to use other projects to update other database, but from this project I can't update any databases. I do not get any errors, the functionality is just unavailable.

Using publish still works. Also updating the project from the database works, just not the other way around.

Does anyone know why I wouldn't be able to update a database via Schema Compare?

Answer

mark picture mark · Sep 5, 2013

Check the bottom of the screen after a compare it shows status messages there. I've seen this issue if there is a compile error in the database project. Once the error is resolved close and reopen the compare dialog. Rerun your compare and the Update button should be available again.