Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are “GRANT”, “REVOKE’ and “DENY’ statements?

statements
0
Posted

What are “GRANT”, “REVOKE’ and “DENY’ statements?

0

GRANT Creates an entry in the security system that allows a user in the current database to work with data in the current database or execute specific Transact-SQL statements. Syntax Statement permissions: GRANT { ALL | statement [ ,…n ] } TO security_account [ ,…n ] Object permissions: GRANT { ALL [ PRIVILEGES ] | permission [ ,…n ] } { [ ( column [ ,…n ] ) ] ON { table | view } | ON { table | view } [ ( column [ ,…n ] ) ] | ON { stored_procedure | extended_procedure } | ON { user_defined_function } } TO security_account [ ,…n ] [ WITH GRANT OPTION ] [ AS { group | role } ] REVOKE Removes a previously granted or denied permission from a user in the current database. Syntax Statement permissions: REVOKE { ALL | statement [ ,…n ] } FROM security_account [ ,…n ] Object permissions: REVOKE [ GRANT OPTION FOR ] { ALL [ PRIVILEGES ] | permission [ ,…n ] } { [ ( column [ ,…n ] ) ] ON { table | view } | ON { table | view } [ ( column [ ,…n ] ) ] | ON { stored_procedure |

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123