About 45,900 results
Open links in new tab
  1. DENY (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 18, 2025 · Denies a permission to a principal. Prevents that principal from inheriting the permission through its group or role memberships. DENY takes precedence over all permissions, except that …

  2. Understanding GRANT, DENY, and REVOKE in SQL Server

    Feb 27, 2013 · The first thing to understand about SQL Server security is that SQL Server is built with the idea that security has to be granted. In other words, if SQL Server sees no applicable …

  3. sql server - revoke vs deny : what is the difference - Stack Overflow

    Apr 25, 2011 · Deny is the opposite of grant. That depends on what you mean by 'opposite'. Revoke is the operation that will restore the state of an access list (that previously had no relevant rule) to what …

  4. SQL Reference - DENY

    DENY is a command in SQL Server that is used to deny permissions to a certain principal (users, roles, or logins). It is primarily used to refuse specific actions on a database object or an entire database.

  5. T-SQL DENY in SQL Server database

    This article shows how to deny permissions on SQL Server database. The T-SQL statement DENY is used to deny permissions in a database.

  6. DENY Object Permissions (Transact-SQL) - SQL Server

    Nov 18, 2025 · A table-level DENY does not take precedence over a column-level GRANT. This inconsistency in the permissions hierarchy has been preserved for backward compatibility.

  7. SQL SERVER – Understanding Grant, Deny, and Revoke Permissions

    Nov 15, 2023 · DENY is used to prevent a security principal (user or role) from performing an operation. Even if a user has been granted permission, the user cannot execute that operation if the same …

  8. SQL DENY Command - Compile N Run

    The SQL DENY command is a powerful tool for explicitly restricting database permissions. It takes precedence over any granted permissions, making it essential for securing sensitive data and …

  9. How to Restrict Access to Tables in SQL Server

    Jul 14, 2025 · Fortunately, SQL Server provides the DENY permission, which allows you to explicitly block access to tables for certain users or roles. Let’s take a look at an example to understand how …

  10. DENY - Transact-SQL Reference Documentation

    If the DENY statement is used to prevent a user from gaining a permission and the user is later added to a group or role with the permission granted, the user does not gain access to the permission.