Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin.
Search for scripts directly from SSMS, and instantly access any saved scripts in your
SSC briefcase from the favorites tab.
Download now (direct download link)
Thank this author by sharing:
By Pratap Prabhu,
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.
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.
Nested Stored Procedure