Can''t revoke permissions from views and tables

  • I've fixed this.

    sp_configure 'allow updates', 1

    reconfigure WITH OVERRIDE

    delete from syspermissions where grantee = 0 and id = <objectID>

    sp_configure 'allow updates', 0

    reconfigure WITH OVERRIDE

    thanks all

  • Thanks for posting your own solution... Lordy, I hope someone comes up with a different way... I really have bad gut feeling about updating system tables...

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 2 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply