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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:08:59+00:00 2026-05-12T19:08:59+00:00

I’ve inherited a web application which strictly uses stored procedures to do its job.

  • 0

I’ve inherited a web application which strictly uses stored procedures to do its job. I like the approach of making it impossible for frontend developers to break the database, but I’ve been tired of writing calls to SPs with plain SQLs and wanted to have something saner. While I’ve been looking for a decent ORM (for Perl in this case, but that isn’t relevant for the question) with support for stored procedures, I’ve realized that ORM could be a direct contradiction to SPs.

My thinking is that SPs are, like the name already tells us, procedures, i.e. representatives of procedural Pascal-style of programming, in fact, that one web application looks exactly like Pascal on the SQL-Server side — many functions, no real namespacing. Contrasting to that, we are trying to do most of our programming OOP-style (or functional, which is a yet another topic), so actually procedural SPs are not really a good fit for clean object hierarchies. At the same time, relational logic can be converted to objects cleanly (via an ORM), but not the procedural, which is probably why most ORMs don’t support SPs very well (but I’m not an expert in that field). In some sense, SPs are ORMs.

So the two questions are:

  1. Am I right assuming we are better off using plain tables when running an ORM?
  2. Are there any “object-oriented stored procedures” on the market, building up from relational model? Clearly, there are object-oriented databases, but I’m interested in “ORM on the server side”.
  • 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-12T19:09:00+00:00Added an answer on May 12, 2026 at 7:09 pm

    “Am I right assuming we are better off using plain tables when running an ORM?”

    Yes.

    The RDBMS should be focused on persistent storage, and nothing more.

    If you do this, you will find that you can — easily — build an access layer in your OO language. All the “front-end” developers must use the access layer and cannot break the database.

    “object-oriented stored procedures?”

    Oracle has some OO-like features of PL/SQL.

    Don’t waste any time on it. Focus on a clean separation between the persistence (in the RDBMS) and the application processing (not in the RDBMS).

    Many, many people will send you hate mail saying things like “the vendor put all those features in there, that means you should use them” and “what’s wrong with stored procedures?” and “a good DBA is better than a room full of front-end developers” etc. etc.

    I don’t know why folks claim stored procedures are “better”, yet many system eventually reaches the wall where the stored procedures and triggers got so burdensome that it had to be rewritten.

    I’ve never seen anyone complain that they had too much application software outside the database.

    Continue to follow your thoughts here — use ORM — avoid stored procedures.

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

Sidebar

Related Questions

No related questions found

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.