Hi,
Sometimes during development, stored procs and views are modified or added. These additions dont always follow through to the staging environment, causing the Application to crash or recover gracefully.
I use this stored procs to find these mismatches and missing objects. On my SQL Box this stored proc has been created in the master database, but it could be created in any database. Execution is simple it is:
exec sp_utl_FindMisMatchedObjects 'FirstdatabaseName','SecondDatabasename'
Thought I would share this code in thanks for the many times I have been helped out on this site.
Pratap
Note: Due to the tabs I use during development I find that copying and pasting from sqlserverCentral web page to QueryAnalyzer gives a number of errors, instead paste to Notepad, replace the control characters with spaces using ctrl+h and then paste to Query Analyzer.