Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Which metadata tables to check for permissions?

Author  Topic 

rubs_65
Posting Yak Master

144 Posts

Posted - 2008-07-11 : 16:22:56
Hi,

We have given a following permission to user:

GRANT EXECUTE ON master..xp_sendmail TO test
Go

In which system tables can we check all the permissions granted to this “test” user?

Thanks
--rubs

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-07-11 : 16:35:44
Check out sys.database_permissions.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

rubs_65
Posting Yak Master

144 Posts

Posted - 2008-07-11 : 16:38:38
I am not able to see the required information using sp_helpuser (I am interested in seeing permission mentioned in initial post "Execute on xp_sendmail")
Also I am looking to get information quering directly metadata/sys tables and not using system functions.Is this possible?

Thanks
--rubs

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-07-11 : 16:53:14
My post says sys.database_permissions.

And it is always best to use system functions or INFORMATION_SCHEMA views if possible rather than system tables.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-07-11 : 16:58:14
Take a look at this from bol. Also look xp_cmdshell.

http://msdn.microsoft.com/en-us/library/ms176097.aspx
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-07-11 : 23:31:13
>> I am not able to see the required information using sp_helpuser

If you want to use system sp, try sp_helprotect.
Go to Top of Page
   

- Advertisement -