Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQLServer-Deny/Revoke permission on sysdatabases

Status
Not open for further replies.

lazymouse1984

Programmer
Oct 4, 2011
1
US
Hi,

I want to revoke/deny select on master..sysdatabases from a specific user.

I ran DENY select ON master.dbo.sysdatabases to User1
REVOKE select ON master.dbo.sysdatabases from User1

But it doesn't help. User1 still can run select * from master.dbo.sysdatabases.
Can anyone help me on this issue?

Thanks
 
Um, what are you actually trying to do?

If the user doesn't have access to a specific database, then they can't see it. This is built in.

Lodlaiden

You've got questions and source code. We want both!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top