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 2000 Forums
 SQL Server Administration (2000)
 Stored Procedure Access Audit

Author  Topic 

LA768
Starting Member

9 Posts

Posted - 2007-09-13 : 11:40:21
How do you take an audit of all stored procedures
in a database and check who has access to them?

I have a database with a ton of SP's and I want
to know who has "EXEC" rights to each of them
and who.

Thanks in advance.
LA768

Larry :-)

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-09-13 : 23:33:36
Unless you trace them in profiler, or modify sp to add usage count to table.
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-09-14 : 04:43:11
sp_helprotect possibly?
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-09-15 : 00:26:12
That lists permission, have exec permission on the sp doesn't mean really run it.
Go to Top of Page

LA768
Starting Member

9 Posts

Posted - 2007-09-15 : 15:40:10
Thanks guys. I can't really monitor them on the profiler
or modify the sp's for a counter. sp_helprotect does not
help. Any other suggestions?



Larry :-)
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-09-15 : 16:34:03
Third party auditing tools.
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-09-15 : 17:30:11
you can try to use SQL Server's C2 auditing.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page
   

- Advertisement -