Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

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)

Find Mismatched Views and Stored Procs

By Pratap Prabhu,

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.

Total article views: 1516 | Views in the last 30 days: 3
 
Related Articles
SCRIPT

Nested Stored Procedure

Nested Stored Procedure

FORUM

stored procedures

stored procedures

FORUM

stored proc

stored proc

FORUM

stored procedure

stored procedure

FORUM

Store Procedure

Store Procedure

Tags
development    
maintenance    
staging    
 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones