Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2010

    Unanswered: How to disable update of some column


    I want to disable update of row (of every column) if someone try via application to update some specific column.

    How can I solve this?
    Can I create some trigger and make rollback?


  2. #2
    Join Date
    Feb 2004
    In front of the computer
    Provided Answers: 54
    If your DB2 supports column level permissions, then I'd suggest that you simply remove permissions on that column. This is a lot cleaner than writing, maintaining, and supporting a trigger.

    In theory, theory and practice are identical. In practice, theory and practice are unrelated.

  3. #3
    Join Date
    Apr 2010
    I don't think that my DB2 version support column level permissions. I have express edition, v9.5, but when I select table privileges I can only set permissions for all columns.
    Is there any other way to set privileges per column?

  4. #4
    Join Date
    Apr 2006
    Provided Answers: 11
    looking-reading the doc (as you did not) indicates for grant update
    | .-,-----------. |
    | V | |
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5-V11 Fundamentals- DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts