Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compare stored procedures in two databases

Status
Not open for further replies.

jabmod

MIS
Sep 12, 2004
68
US
How can one compare stored procedures contained in two databases to see the ones that are not the same.

Thanks a lot.
 
Programmatically or manually?

Here's a general outline of the programmatic method:

Create a table with two VARCHAR fields.

insert into the table the results of sp_helptext: the first SP in the first column, and the second in the second column.

SELECT * from TheTable where Field1 <> Field2

Manually, I use SourceSafe's difference tool.

Good luck,

Phil Hegedusich
Senior Web Developer
IIMAK
-----------
A priest, a lawyer, and a rabbi walk into a bar. The bartender looks up and says "What is this, a joke?
 
I use SQL COmpare myself. It will compare all the sps and tell you which are different and highlight the differences. Will also compare all the other objects in a database.

Questions about posting. See faq183-874
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top