![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
So when my developers need to make a change to a procedure, instead of just recompiling the procedure they want to create a new procedure named like sp_procedure2 and then use the new procedure in their application. They want to do this so that they don't mess up any other application that might be calling the same procedure. And then when they can get around to updating the other applications they will use the new procedure. I was wondering if anybody else does this and what you guys think. I am against it but I am getting overruled. My database will look confusing, source safe will be confusing, and now I have to maintain multiple procedures when something needs to change. |
#12
| |||
| |||
|
|
On Wed, 10 Mar 2010 21:07:50 -0800, jeffchirco (AT) gmail (DOT) com wrote: So when my developers need to make a change to a procedure, instead of just recompiling the procedure they want to create a new procedure named like sp_procedure2 and then use the new procedure in their application. Have your developers ever heard of something called "versioning system"? There are several of those which are widely used. The names you will most frequently encounter are git, svn and CVS. Those things can really help with versions, branches and revisions. There are also commercial products which do the same thing, but with a better GUI. Personally, I think that GUI is for wimps, especially when it comes to versioning systems. One should learn the CVS syntax by heart and know how to diff, how to see the revision log, check in a new version, merge 2 branches etc. |
#13
| |||
| |||
|
|
Thou shalt not use "select count(*)" to establish existence. |
#14
| |||
| |||
|
|
So when my developers need to make a change to a procedure, instead of just recompiling the procedure they want to create a new procedure named like sp_procedure2 and then use the new procedure in their application. They want to do this so that they don't mess up any other application that might be calling the same procedure. *And then when they can get around to updating the other applications they will use the new procedure. *I was wondering if anybody else does this and what you guys think. I am against it but I am getting overruled. *My database will look confusing, source safe will be confusing, and now I have to maintain multiple procedures when something needs to change. |
#15
| |||
| |||
|
|
Op 11-3-2010 6:17, Mladen Gogala schreef: On Wed, 10 Mar 2010 21:07:50 -0800, jeffchirco (AT) gmail (DOT) com wrote: So when my developers need to make a change to a procedure, instead of just recompiling the procedure they want to create a new procedure named like sp_procedure2 and then use the new procedure in their application. Have your developers ever heard of something called "versioning system"? There are several of those which are widely used. The names you will most frequently encounter are git, svn and CVS. Those things can really help with versions, branches and revisions. There are also commercial products which do the same thing, but with a better GUI. Personally, I think that GUI is for wimps, especially when it comes to versioning systems. One should learn the CVS syntax by heart and know how to diff, how to see the revision log, check in a new version, merge 2 branches etc. And I thought SourceSafe was a versioning system.... Versioning systems won't help if both versions of the procedure must be kept in the software |
|
, indeed because other programs may need the old version when they can not handle changes made to the original procedure. I agree that versioning within the code is not the best way, but sometimes it can not be avoided. But the new procedure should not be considered a new version, but a complete new procedure, and like Álvaro states, be given a new name. |
|
If both procedures share a lot of code, the duplicate part should be taken out and be programmed as a separate procedure and be called by both procedures. |
![]() |
| Thread Tools | |
| Display Modes | |
| |