As a clean up job, I am trying to remove all users' (including non public users) access right to a single table object (apart from superusers) and will subsequently grant new access rights. Is there a simple way to remove access rights to a table without using a cursor with system tables?
Sql-server – SQL Server, remove all users’ access right to a table object
Securitysql-server-2008
Related Question
- Security Risk – How Dangerous is Storing User Passwords in Plaintext in CGI Script
- Sql-server – Grant access to all objects (with a few exceptions) to a role
- PostgreSQL Security – How to Revoke Grant Option from Table Owner
- SQL Server – Grant Minimum Select Permission on System ‘sys’ Tables
- Security Vulnerabilities of IDENTITY_INSERT and DBCC CHECKIDENT
- PostgreSQL Security – Disallow Superusers and Single-User Mode
- SQL Server 2012 – How to Grant Permissions for Anything Inside a Schema
Best Answer
This code should work below:
Let me know if that does what you're looking for. Change UberSecureTable to your actual table name.