Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 SP Diff Reporting
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

6 Posts

Posted - 10/03/2014 :  10:27:25  Show Profile  Reply with Quote
We are running SQL Server 2005 and I have SQL Server Management Studio 2005, 2008, 2012. Is there a built in way to compare source code like a diff report for stored procedures?

I'm currently dumping code into Ultra Edit and doing the diff there. I'd like to produce this natively within management studio.

I searched and couldn't find anything really helpful. I'm willing to implement a diff stored procedure if anybody has one.


Bustaz Kool
Flowing Fount of Yak Knowledge

1834 Posts

Posted - 10/03/2014 :  11:46:51  Show Profile  Reply with Quote
The sys.sql_modules system table holds the text of the stored procedures provided that they are not encrypted. You could write a script that would perform the comparison. You might need linked servers or some other mechanism to allow comparisons across servers or instances. I know that you wanted to produce this natively but there are plenty of 3rd party tools that will do this for you. We use SQL Compare from RedGate and are happy with it.

No amount of belief makes something a fact. -James Randi
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2019 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000