I have data used primarily in one table in a database and referenced in several different tables. I need to correct the data. Is it possible to write a “where-used” statement that will search every table in the database and return all tables where the data is referenced?
I am using SQL 2005.
Thanks.
I’ve found this sql statement here:
NOTE:- I name all foreign key constraints starting with FK_ so it is easy to filter them.