Correct ordering of DB objects in synchronization script
dariasbrownCJ
Posts: 3
Does SQL Compare 9 or 10 Standard support the following:
Dependency checking so objects are scripted in the correct order for updates. Database objects are scripted in the correct order even if SQL metadata (sysdepends) is broken.
Thanks,
Darias
Dependency checking so objects are scripted in the correct order for updates. Database objects are scripted in the correct order even if SQL metadata (sysdepends) is broken.
Thanks,
Darias
Comments
SQL Compare has had its' own text-parsing dependency engine since about version 3, so you should be pretty safe with dependencies, even if sysdepends has a problem. It needs this parsing support in order to work with scripts as a data source, so it's reliable.
When comparing a live database, v10 uses sysdepends as a starting point and then adjusts depending on the definition of the objects in the database.
Thanks for your response. I have an issue with the SQL Compare parser because it has been creating objects that depend on tables ahead of the table DDL.
Darias
1) Create table
2) Create indexes
3) Create stored proc
4) Create full text index on table
As the full text index does not exist at the time the stored proc is being created I get the following error...
Cannot use a CONTAINS or FREETEXT predicate on table or indexed view 'tblCompany' because it is not full-text indexed.
Is there a way to control the ordering of the objects in the scripts or is it all automatic?
We hope to have this fixed for v11.
Redgate Software