Home Forums SQL Server 2012 SQL Server 2012 - T-SQL Purging data from Master and 5 child tables RE: Purging data from Master and 5 child tables
Jonathan AC Roberts
SSCoach
Points: 18257
More actions
July 8, 2014 at 11:31 am
#1727836
If you make all the FK's ON DELETE CASCADE you can just delete small batches of rows from the Sample table. You would need indexes on the SampleID columns on all the tables with FKs though to get any sort of performance.