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 7577495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:11:59+00:00 2026-05-30T17:11:59+00:00

Is it a good practice to have nested stored procedures (meaning calling a stored

  • 0

Is it a good practice to have nested stored procedures (meaning calling a stored procedure inside another stored procedure)? Are there any precautions that one should follow while nesting stored procedures? Is there a permissible limit on how many one can nest inside?

Thanks in anticipation

  • 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-30T17:12:01+00:00Added an answer on May 30, 2026 at 5:12 pm

    Yes, there is a limitation on the level of nesting. From the manual:

    You can nest stored procedures […] up to 32 levels.

    The fact that the limitation exists might imply that nesting stored procedure calls too much isn’t a very good thing. Yet the maximum level seems to me big enough for one not to worry about nesting calls like 5 or so levels deep.

    And indeed, I’ve never heard that having nested calls in your design introduced drawbacks of any kind, nor have I experienced any actual disadvantage from calling stored procedures from one another. On the contrary, I think, factoring your server-side code enables you to make your design more flexible. Or, if nothing else, it at least allows you to make your stored procedures’ code more manageable by splitting the larger ones into more moderate-sized (and possibly logically complete) units.

    I do not mean to say that you should always try to factor your stored procedures at any cost, I just wouldn’t see anything wrong with your having to nest your procedures if that would fit your design better.

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

Sidebar

Related Questions

Is it a good practice to call a stored procedure again and again inside
Is it good practice to have a class constructor that uses default parameters, or
Is it good practice to have a unit test that specifies how long a
Are there good reasons why it's a better practice to have only one return
Is it good practice to make sure that all abstract classes have names prefixed
I have read that it is a good practice to not use too many
Is it a good practice to have JavaScript (jQuery) code inside an Ajax response.
Is it good practice to have a link that just exists for its tooltip?
I have heard that using static member objects is not a very good practice.
Is it good practice to have more than one try{} catch{} statement per method?

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.