C
Chris Dunaway
In the course of developing my application, it inserts many test rows
into the test database. These are standard Orders with details and
other data. Now, I wish to delete these "dummy" orders, but because
of the relationships between the order, details, and other tables,
it's a tedious manual process.
I was wondering if anyone know of any "ready-made" utilities for
selecting a row in a table and deleting it along with any rows on
which it depends or depends on it. For example, if I provide an order
id, I want to delete that order, plus any details and any addresses,
contacts, etc. which are related to that order.
I can write a script to do this, but in an effort to save some time, I
thought I would check to see if anyone knows of any utilities that can
do this. Since this is a test database that is shared by other
developers, I cannot simply truncate the tables.
As I said, writing a script would take me time that I would rather not
expend unless I have to. That's why I am asking if anyone knows of a
utility or script that is available to do this.
Thanks for any assistance.
Chris
into the test database. These are standard Orders with details and
other data. Now, I wish to delete these "dummy" orders, but because
of the relationships between the order, details, and other tables,
it's a tedious manual process.
I was wondering if anyone know of any "ready-made" utilities for
selecting a row in a table and deleting it along with any rows on
which it depends or depends on it. For example, if I provide an order
id, I want to delete that order, plus any details and any addresses,
contacts, etc. which are related to that order.
I can write a script to do this, but in an effort to save some time, I
thought I would check to see if anyone knows of any utilities that can
do this. Since this is a test database that is shared by other
developers, I cannot simply truncate the tables.
As I said, writing a script would take me time that I would rather not
expend unless I have to. That's why I am asking if anyone knows of a
utility or script that is available to do this.
Thanks for any assistance.
Chris