February 27, 2015 at 2:29 am
Hi All,
I have two procedures Sp1 and Sp2. The Sp1 is calling from Sp2. If there come new parameters or removed from the first procedure Sp1 then it will effect the Sp2 and its execution will break if required changes not done. So I want that when any changes making in SP1 then i need alert about the Sp2 changes.
February 27, 2015 at 2:46 am
What about a DDL trigger that would fire up on ALTER_PROCEDURE and if it is sp1 then inform about updating sp2. I can't think of other way at the moment.
February 27, 2015 at 4:00 am
Not exactly what you want, but in SSMS you can right-click on a proc in Object Explorer and select 'View Dependencies' to see what depends on the proc (or what the proc depends on).
A more robust solution is to create a Visual Studio database project and to use the 'build' functionality to detect such issues before they get deployed.
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin
February 27, 2015 at 6:02 am
Have a full deployment testing process that builds your test scripts and test databases from a source control system. That way you can ensure that what you're deploying works and has all the necessary dependencies prior to deployment.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply