Creating views with dependencies
bmilne
Posts: 6
I am finding an issue when attempting to sync where a view that is to be created has a dependency on another view that is also to be created. It errors and will not create either. Has anyone experienced this and if so have they found a way around it outside of manually having to adjust the order in which the views are created?
Mullets are:
This is a private poll: no-one will see what you voted for.
This discussion has been closed.
Comments
I do agree that this is quite an annoyance and would love to know a better solution.
I'd think it would be pretty unusual if this didn't work. SQL Compare has a very sophistocated text parsing engine that builds the dependency list so that all dependent objects are scripted as part of the migration. Enterprise Manager uses the (notoriously unreliable) sysdepends table that breaks if object dependencies are rearranged after creation.
I'd make sure that you have the 'include dependent objects' option on as the default dependency behavior can be changed with this option set in the comparison options.
As usual, if you've got any scripts that you can send with examples of dependency chains that break SQL Compare, they're always welcome at our support department. (support at red-gate.com)