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

 All Forums
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 SP Diff Reporting

Author  Topic 

pandalion
Starting Member

6 Posts

Posted - 2014-10-03 : 10:27:25
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.

Thanks!

Bustaz Kool
Master Smack Fu Yak Hacker

1834 Posts

Posted - 2014-10-03 : 11:46:51
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
   

- Advertisement -