Quantcast
Channel: THWACK: All Content - Server & Application Monitor
Viewing all articles
Browse latest Browse all 12281

Datebase sizes are not displaying

$
0
0

When I apply the following SQL permissions script to a SQL instance I am unable to see any database sizes, except for the system databases. The script was provided by an Orion engineer.

Is there still a permission setting that i have missed with this script?

 

USE [master]

GO

CREATE LOGIN [Domain\Login] FROM WINDOWS WITH DEFAULT_DATABASE=[master]

GO

 

 

USE [msdb]

GO

GRANT CONNECT TO [Domain\Login]

EXEC sp_addrolemember N'db_datareader', N'Domain\Login'

GO

 

 

use [master]

GO

GRANT CONNECT TO [Domain\Login]

GRANT VIEW SERVER STATE TO [Domain\Login]

GRANT EXECUTE ON xp_readerrorlog TO [Domain\Login]

GRANT VIEW ANY DATABASE TO [Domain\Login]

GRANT VIEW ANY DEFINITION TO [Domain\Login]

GO


Viewing all articles
Browse latest Browse all 12281

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>