GRANT ALL

  • I don't understand why when I use the following Syntax:

    GRANT ALL TO PUBLIC after I have created objects, that the grant is not performed.

  • Check whether the permissions are denied at another level such as group or role

     

  • Thank you for the response. No, they are not denied anywhere else. I am creating a new database, adding a user, creating an object, and then trying to grant all to public. I know that I can do it by including the "ON" statement, but I am trying to find an all encompassing statement.

  • GRANT ALL TO PUBLIC

    grants statement access to public, where statement is CREATE DATABASE,CREATE DEFAULT etc. So you have allowed a member of public to create databases !

    To grant at object level you have to use ON

    GRANT ALL ON object TO PUBLIC

    for each object

    There is not a 'global' grant for all objects

     

    Far away is close at hand in the images of elsewhere.
    Anon.

  • If you want to do it for all tables in a database you could use

    sp_msforeachtable

    Far away is close at hand in the images of elsewhere.
    Anon.

Viewing 5 posts - 1 through 4 (of 4 total)

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