Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7022711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:37:02+00:00 2026-05-27T23:37:02+00:00

We are developing an application where sometime we need to support more than one

  • 0

We are developing an application where sometime we need to support more than one versions of that software at a time. For example Release 1-0-300 , 1-0-300-With-Test-FunctionalityA, Release 1-0-300-With-Test-FunctionalityB. Due to such requirements we sometime use the same Stored Procedure with different name in different versions for example

“1-0-300” uses Stored Procedures “USP_GetProucts“

“1-0-300-With-Test-FunctionalityA” uses Stored Procedures “USP_GetProucts_FunctionalityA“

“1-0-300-With-Test-FunctionalityB” uses Stored Procedures “USP_GetProucts_FunctionalityB“

Some Facts:

1- Why we are not using some alternate solution like we can have a Parameter “WhichStoredProcedureToCall” based on that parameter we can call the required STored Procedure?
Because “USP_GetProucts” can have total different functionality than “USP_GetProucts_FunctionalityA” & these are huge stored procedures.

2- We are using SQL2008.

So my question is can we implement some type of “Stored Procedure Redirect“, if “USP_GetProucts_FunctionalityA” not found then get the results form “USP_GetProucts”

Regards.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:37:03+00:00Added an answer on May 27, 2026 at 11:37 pm

    You can see if a stored procedure exists acessing to the sysobjects table:

    IF EXISTS(select name from sysobjects where type = 'P' and name = 'tablename')
      BEGIN
         select 1
      END
    

    Then you simply need to make the necessary IF‘s.


    Since you are using SQL Server, you could have a look into SINONYMS.

    You could make USP_GetProucts, USP_GetProucts_FunctionalityA and USP_GetProucts_FunctionalityB sinomyns 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing small application in PHP that will need to store small number
I'm developing a multitouch application. One touch is expected to move, and I need
I'm developing application with GWT 2 and would like to add float panel that
When developing an application that sends out notification email messages, what are the best
I`m developing an application using Spring WebFlow 2, Facelets and JSF. One of my
I am developing console application in C# with lot of parameters and sometime I
The application my team is currently developing has a DLL that is used to
I'm developing a web application that has a certain layout. I'm mainly using CSS
I'm developing a Web application. I need to display some decimal data correctly so
In a Linux embedded application I'm developing, there is the need to record some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.