I have an application that relies very heavily on stored procedures (SQL 2005/2008). We are doing a minor update that will modify 25-35 of these stored procedures. The application is such that both versions of the stored procedure must be available.
This is major version 4 of the application and usually we've been able to completely modify the data structure to go with each new version. However in this case, we cannot do that.
Here are my 2 options I've come up with
Make a "2" version of each stored procedure. If I had a procedure called getUser create a getUser2. The downside of this is that the # of stored procedures will grow exponentially with each version change
Add a @version parameter to each stored procedure that defaults to v1. This would keep the number of stored procedures down but would bloat each stored procedure
Anyone have any thoughts on this? Any other clever ideas?
Cody