In large environments it becomes difficult to ensure your data is always in sync. I've noticed that the troubleshooting process is often flawed at certain organizations. People tend take a 10 mile wide top down approach to troubleshooting every problem that comes across their desk. In conjunction with a few other tools, this can help you isolate data anomalies.
There are certain dangers to running this script. It goes without saying that this should never be public facing unless you want bots/people hammering your databases with connect attempts.