B
Ben8765
Hi,
I am looping through all the tables in a db and appending data to each table.
The problem is that I can't append data to a table on the "many" side before
i append the necessary data to the "one side" table.
Is there a way to identify the join types (or "sides) that a table is
involved in?
That way i could loop through and append the tables that are on the "one"
side first.
Then do the tables that are on the "many side".
I suppose this could get tricky because the table could be on the "many"
side of one relationship, and on the "one" side of another relationship.
That would mean I would have to make some sort of hierarchy/order system (I
think?).
Anyway, is there a way to determine if a table is involved in a relationship
that would result in key violations?
Thanks,
-Ben
I am looping through all the tables in a db and appending data to each table.
The problem is that I can't append data to a table on the "many" side before
i append the necessary data to the "one side" table.
Is there a way to identify the join types (or "sides) that a table is
involved in?
That way i could loop through and append the tables that are on the "one"
side first.
Then do the tables that are on the "many side".
I suppose this could get tricky because the table could be on the "many"
side of one relationship, and on the "one" side of another relationship.
That would mean I would have to make some sort of hierarchy/order system (I
think?).
Anyway, is there a way to determine if a table is involved in a relationship
that would result in key violations?
Thanks,
-Ben