Finding tables and columns in a database

Sometimes you want to find out where a table or a column is referenced in a database. I found this script that does just that.