MySQL Forums
Forum List  »  Microsoft SQL Server

Re: Lost ability to retrieve the schemes from MSSQL once we replaced our MSSQL 2008 R2 version with 2017 version
Posted by: Jacob Nikom
Date: March 01, 2018 04:14PM

Hello Milosz,

I tried to execute this query:
GRANT VIEW ANY DATABASE TO OSDprod;

However, it produced an error:
Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.

I think I don't have enough privileges for this operation.
Is it expected?

I ran this query and got the following results:
SELECT l.name as grantee_name, p.state_desc, p.permission_name
FROM sys.server_permissions AS p JOIN sys.server_principals AS l
ON p.grantee_principal_id = l.principal_id
WHERE permission_name = 'VIEW ANY DATABASE' ;
GO
-------------------------------------------
grantee_name state_desc permission_name
-------------------------------------------
public GRANT VIEW ANY DATABASE
-------------------------------------------

Options: ReplyQuote


Subject
Written By
Posted
Re: Lost ability to retrieve the schemes from MSSQL once we replaced our MSSQL 2008 R2 version with 2017 version
March 01, 2018 04:14PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.