Home Forums SQL Server 7,2000 Administration view the data from the sysmail_sentitems and sysmail_unsentitems and sysmail_faileditems without giving sysadmin role MSDB databasse RE: view the data from the sysmail_sentitems and sysmail_unsentitems and sysmail_faileditems without giving sysadmin role MSDB databasse

  • piliki (4/14/2013)


    waiting for best answers!!!!

    the example i provided actually works; so you will have to provide the specific details of whatever you did.

    a user does nto have any more rights that you give them...so you need to check what groups your user actually belongs to, because other dBA's could have assigned additional permissions, or someone got lazy and made the user a sysadmin to avoid permissions headaches.

    it's trivial to test something like this as well:

    --impersonate utest user - or open new window and log on as test login

    execute as user='utest'

    go

    --check security context

    print user_name()

    --check your view ability to select

    select * from msdb.dbo.all_mailitems

    --revert to original scope/superuser

    revert

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!