Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Cascade delete

Author  Topic 

QueenKirsty
Starting Member

18 Posts

Posted - 2009-05-05 : 10:26:27
Is there any way to temporarily "turn on" the cascade delete for all relationships associated with a table?

I have produced a list of tables that I want emptied and want to pass that to a SP or bit of VBA code and have all the records and associated records deleted. I have tried using the SP from a previous thread:
http://www.sqlteam.com/article/performing-a-cascade-delete-in-sql-server-7
which runs through without errors but leaves records in some of the tables.

Any ideas?
   

- Advertisement -