Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't update with schema compare

Tags:

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?

like image 758
Kris Harper Avatar asked Jun 06 '13 17:06

Kris Harper


People also ask

How do you compare two schemas?

To compare database definitions. On the Tools menu, select SQL Server, and then click New Schema Comparison. Alternatively, right-click the TradeDev project in Solution Explorer, and select Schema Compare. The Schema Compare window opens, and Visual Studio automatically assigns it a name such as SqlSchemaCompare1 .

How do you edit a database schema?

To change the schema of a table by using SQL Server Management Studio, in Object Explorer, right-click on the table and then click Design. Press F4 to open the Properties window. In the Schema box, select a new schema. ALTER SCHEMA uses a schema level lock.

How do I compare schemas in Toad?

Toad offers the Compare Schemas screen for that purpose. To launch the Compare Schemas screen, choose Main Menu → Database → Compare → Schemas.


1 Answers

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.

like image 113
mark Avatar answered Sep 18 '22 13:09

mark