On a serious note.You can try the query below.You will have to disable all the constraints on all the tables so that the refrential integrity does not cause a error and then again reenable it .EXEC sp_msforeachtable @command1="print 'Disable Constraints on table: ?'", @command2 = "ALTER TABLE ? NOCHECK CONSTRAINT all";EXEC sp_MSforeachtable @command1="print Deleting from table: ?'", @command1 = "DELETE FROM ?"EXEC sp_msforeachtable @command1="print 'Enable Constraints on table: ?'", @command2="ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all"
PBUH