I am using SQL Server Management Studio v17.9.1. I followed guide of this post to use below command but failed with error.
REVOKE VIEW ANY DATABASE FROM PUBLIC
Securable class 'server' not supported in this version of SQL Server.
I tried below code as well with same error:
USE master;
GO
DENY VIEW ANY DATABASE TO TestUser;
GO
What's wrong for this?