Click here to Skip to main content
15,891,785 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
Hi All,

My question is Which types of objects are securable with GRANT and DENY statements in SQL ?

I am thinking of INSERT,DELETE,SELECT, and UPDATE.

Please explain if I am wrong.

Thanks in advance.

What I have tried:

Being a new to SQL I believe from my notes and research that above information is right. Please correct If I am wrong
Posted
Updated 4-Dec-17 19:44pm

1 solution

This is correct , it is application to tables, views, table-valued functions, stored procedures, extended stored procedures, scalar functions, aggregate functions, service queues, and synonyms.

Here are details categories

scalar function permissions: EXECUTE, REFERENCES.
Table-valued function permissions: DELETE, INSERT, REFERENCES, SELECT, UPDATE.
Stored Procedure permissions: EXECUTE.
Table permissions: DELETE, INSERT, REFERENCES, SELECT, UPDATE.
View permissions: DELETE, INSERT, REFERENCES, SELECT, UPDATE.

same is explained here

DENY Object Permissions (Transact-SQL) | Microsoft Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900