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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:47:45+00:00 2026-05-27T22:47:45+00:00

In reading @PerformanceDBA’s answer to Historical / auditable database he made this statement: In

  • 0

In reading @PerformanceDBA’s answer to Historical / auditable database he made this statement:

In a real (standard ISO/IEC/ANSI SQL) database, we do not GRANT
INSERT/UPDATE/DELETE permission to users. We GRANT SELECT and
REFERENCES only (to chosen users) All INSERT/UPDATE/DELETEs are coded
in Transactions, which means stored procs. Then we GRANT EXEC on each
stored proc to selected users (use ROLES to reduce administration).

Is this true? How does that jive with ORM tools which generate INSERT/UPDATEs dynamically?

UPDATE

OK, so here’s an example. I’ve got a web application with two interfaces, an Admin and a User. The admin side uses heavy ORM capable of generating hundreds if not thousands of distinct SQL commands dynamically.

The user interaction is far simpler, and I’ve got a dozen or so SPs that handle any UPDATE/INSERTs for a couple of voting buttons. Obviously the users the applications run under have very different permission sets. On the admin side the DB user for the ORM has full CRUD access to relevent tables, there are no SPs used at all for this application–and I wouldn’t think of touching the data without going through the business logic in the domain model. Even bulk data imports get processed through the ORM. SPs on the user side I consider a small concession to this principle just because they are such a special case.

Now, I find the statement above in the original question somewhat disturbing, as I’d consider this to be something of a ‘real’ database, or at least close to it.

  • 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-27T22:47:46+00:00Added an answer on May 27, 2026 at 10:47 pm

    It jives like your grampa at a rave. ORMs can utilize SPs but it doesn’t get the best out of them.

    SP Only was certainly the way life used to be, it was like the eleventh commandment, but as you point out ORMs don’t really work like that. I used to think of the whole SP layer as a sort of prepubescent ORM in itself, you took your relational DB, made a bunch of joins and returned a set of data with the columns/properties needed to populate your objects with.

    These days, with dynamic ORM type apps, permissions need to be specified on the table, it’s no less secure if your DBA is doing their job, it’s just a bit more work and there needs to be more communication regarding what is allowed on tables, if you don’t need DELETE then your DBA needs to know not to give permissions for it.

    Good DBA’s know that a secured DB with table access is just as secure as a DB with SP only access. Convincing less confident DBA’s of that is a much harder matter.

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

Sidebar

Related Questions

Reading this blog post about HttpOnly cookies made me start thinking, is it possible
Reading this question I found this as (note the quotation marks) code to solve
Reading over the responses to this question Disadvantages of Test Driven Development? I got
Reading through this question on multi-threaded javascript, I was wondering if there would be
Reading this post has left me wondering; are nightly builds ever better for a
Reading code from other posts, I'm seeing something like this. struct Foo { Foo()
Reading this site, I've found this : [The] line private static final Foo INSTANCE
Reading the Google Docs API I find this: Downloading Files cannot be downloaded in
Reading Real World Haskell, on page 95 the author provides an example: myFoldl f
Reading PHP & jQuery Cookbook right now and it gives this example for using

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.