Some further comments.
Use with caution, especially on larger databases.
Run this against a restored backup that is not used for production.
Script is useful for finding key values when performing migrations or troubleshooting issues with orphans and cascade deletes.