Quantcast
Channel: SQL Errors – SQLSERVERLEARNER
Viewing all articles
Browse latest Browse all 74

Msg 4621 Level 16 State 10 Line 1 Permissions at the server scope can only be granted when the current database is master

$
0
0

Error Message:

Msg 4621, Level 16, State 10, Line 1
Permissions at the server scope can only be granted when the current database is master

This message occurs when the Server scope permissions are tried to be modified from any other database other than master.

Example:

USE AdventureWorksDW2008R2
GRANT VIEW SERVER STATE TO USER1
USE AdventureWorksDW2008R2
REVOKE VIEW SERVER STATE TO USER2

Fix/Resolution:
Change the database to master.

USE MASTER
GRANT VIEW SERVER STATE TO ABC

Viewing all articles
Browse latest Browse all 74

Trending Articles