View Definitions

  • I have a windows group " DEvelopers" which has access to view definition at server level granted by "sa" role. That group can view the definition of a view in database A but not on Database B, how is that? what do i need to check?

  • Do they have rights to enter the database?

    K. Brian Kelley
    @kbriankelley

  • yes they do.

    When i explicitly give view definition access on the database it working but i was under assumption that if i give the same access on the server they can view difinition of all the database on that server BUT it is not doing so? isnt it weired???

  • Did you grant VIEW DEFINITION on a particular database per chance? If you granted VIEW ANY DEFINITION, as long as they have the ability to access the database, they should be able to enter and view the T-SQL for a particular object which is applicable, such as a stored procedure or view.

    K. Brian Kelley
    @kbriankelley

  • But my doubt is , what is the difference between " VIEW DEFINITION" on server and database. I was expecting that if i grant view definition on the server level, the user has to see definition of a view/table from any database he has access to but its not doing so, i am giving this permission on each database explicitly.

    thanks

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

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