Circular Dependency
ansonee
Posts: 3
I'm trying to generate test data and I keep running into an issue with "circular dependencies". Of course, those tables involved in the circular dependencies are the most important tables and NEED to have data generated in them.
I've looked everywhere and can find nothing on how to resolve this error.
How have people resolved the circular dependency issue in the past?
Thank you!
I've looked everywhere and can find nothing on how to resolve this error.
How have people resolved the circular dependency issue in the past?
Thank you!
Comments
I would just like to know whether or not Data Generator has a way to deal with circular dependencies. There are several in the structure I'm trying to generate data for, and without those in place, the data is no good.
In reading RedGate's material, it looks like it can't handle them...
Also, circular dependencies is a blanket-term for a group of problems - possibly a group of FK dependencies, or a trigger and maybe some other thing. In some cases, you could work around the issue by de-selecting all but one table that serves the root data and populate it in one project, then do the rest via a second project.
But I have seen some problems where even this does not work - for instance if the only way is to update a record in table A then one in table B then one in table C. Since SDG bulk inserts data one table at a time, it can't cope with *all* circular dependencies.