Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Schema Compare and Update comments out unused code

I have a Visual Studio 2010 Database Project. It works great for most stuff.

However one thing is very annoying. Say I have a table called dbo.MyCoolTable. If I go the the database and rename it to dbo.MyKindaCoolTable it works fine in the database.

However, when I do a schema compare and write the changes back to my Database project it leaves the old file in the project. So I end up with two files (dbo.MyCoolTable.Table.sql and dbo.MyKindaCoolTable.Table.sql).

Once or twice this is not a problem, but over time this really adds up. And it is tedious to go through the project and manually delete each of these "left over" files.

Is there a way to just delete the "left over files" when I write to my Database Project from a Schema Compare?

like image 694
Vaccano Avatar asked Sep 14 '26 00:09

Vaccano


1 Answers

Not that I know of in the current world, but some of the the Denali changes help with syncing code. I have not seen how far they take this paradigm, or had time to play with it, however. I know that does not help in the current world.

like image 130
Gregory A Beamer Avatar answered Sep 17 '26 00:09

Gregory A Beamer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!