http://www.davewentzel.com/content/post-restore-process. Train your staff to always run this proc as part of their environment build and db restore process and you'll ensure your environment (database at least) is always configured properly.
Please see my other public repos at http://git.davewentzel.com
UntrustedForeignKeys.sql
------------------------
http://www.davewentzel.com/content/find-and-fix-untrusted-foreign-keys. Finds and optionally fixes (if it can) untrusted foreign keys in your database.
Please see my other public repos at http://git.davewentzel.com