Take the formulas 1 + 2 x 3 and (1 + 2) x 3; two completely different answers. In the case of Visual Studio Schema Compare, what I would assume the order of operations to be for updating a database would be to first update tables, then updates views (which could be dependent on the tables), and finally update stored procedures (which could be dependent on either the tables or the views). It seems that Schema Compare attempts to do stored procedures first, and when it comes across a reference to a database object that does not yet exist, it dies out with the following error message.

In this example, we have two tables which have been created and the corresponding Create and Update stored procedures which interact with the new tables. This is a pretty basic example of typical database schema updates and one I would think Schema Compare could figure out.
The current workaround I have found for this is to:
- Mark all Stored Procedures as Skip All.
- Run Write Updates.
- Refresh the compare.
- Mark all stored procedures as Create/Update All.
- Run Write Updates.
A few extra steps, but it seems to work every time. Hopefully this is something that Microsoft will correct or provide some information as to why the order of operations proceeds with stored procedures first.


Great Tip – ashame I need it but very useful information.
What’s up, its good paragraph concerning media print, we all be familiar with media is a impressive source of data.
Do you have a spam issue on this website; I also am a blogger, and I was curious about your situation; we have created some nice methods and we are looking to swap strategies with other
folks, please shoot me an email if interested.
Fantastic blog you have here but I was curious about if you knew of any community forums that cover the same topics talked about here?
I’d really love to be a part of group where I can get comments from other experienced people that share the same interest. If you have any suggestions, please let me know. Cheers!
I blog often and I seriously appreciate your information.
This article has truly peaked my interest. I will book mark your site and keep checking for new information about once
a week. I opted in for your Feed too.
I Continue hearing towards the news speak around
finding free on-line grant applications so I have been attending around for the top-quality web site to obtain 1.