I have been given project with over 500 tables with undocumented foreign key assignments. The main table is tblCompanies of which, I need to delete companies and all the related data in the other connected tables. Does anyone know of a tool or a method I could use to either accomplish or hunt down the order of deletion from these tables?
Edit: I am using SQL Server 2008.