- Sep 14, 2002
- 2,470
- 1
- 81
I kinda have an urgent request as I need to make a quick fix for an app. Basically, one application accesses the SQL back end for another application. Before doing this, the app does a simple versioning check by running a stored proc in the SQL back end which only returns a version number. If the version (which is hard-coded in the first app) is supported by the first app, then it runs without issue. Otherwise, it returns an error that the version isn't supported. The issue is that we upgraded versions on the second app. Although the back end schema did not change at all, the version stored proc returns an unsupported version. Until the new version number can be hardcoded into the first app, is there any way to tell the stored proc to return a new value IF and ONLY IF it is accessed by the first app. Basically:
1. App 1 Accesses Stored Proc
2. Stored Proc Logic:
If (being accessed by app 1)
BEGIN
RETURN(X)
ELSE
RETURN(Stored Proc)
END
I hope the example clarifies the issue. This is a temporary fix until we can get the developers to change the hard-coded version in App1. Any help would be greatly appreciated.
1. App 1 Accesses Stored Proc
2. Stored Proc Logic:
If (being accessed by app 1)
BEGIN
RETURN(X)
ELSE
RETURN(Stored Proc)
END
I hope the example clarifies the issue. This is a temporary fix until we can get the developers to change the hard-coded version in App1. Any help would be greatly appreciated.
