Click here to Skip to main content
15,896,457 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Is there some tool we can use to compare and synchronize stored procedures? Requirements are simple. We need to compare stored procedures from separate databases and find mismatch data.
Posted
Comments
Sergey Alexandrovich Kryukov 29-Apr-13 15:04pm    
Not clear. What should be the result of comparison? Why?
—SA

We are using ApexSQL Diff[^] You can use this tool to both compare objects and sync either from tool directly or create synchronization script.

If you’re not into third party tools you can try doing this manually by comparing sys schema tables. More specifically sys.syscomments tables on both servers.
 
Share this answer
 
Visual Studio 2010 Premium an Ultimate have Schema compare Tool which compares and programmability objects.
Red Gate has pricy but excellent line of tools for similar tasks.
 
Share this answer
 
Store all sto proc code blocks/scripts/.sql/etc in tables in a database. Enable full-text search. Or not.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900