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

AppInsight not showing all databases

$
0
0

We are using AppInSight to monitor some SQL databases on numerous different SQL servers the problem we are having is that AppInSight doesn't show all the databases on any given server it will show some and then usually after two to three weeks it will drop some of the databases it originally showed in the application view for that server. Our security requirements direct us to use windows authentication with a domain user and have tailored the script from the manual as follows:

 

USE master

GRANT VIEW SERVER STATE TO "DOM\USER"

GRANT VIEW ANY DEFINITION TO "DOM\USER"

GRANT VIEW ANY DATABASE TO "DOM\USER"

EXEC sp_adduser @loginame = 'DOM\USER' ,@name_in_db = 'DOM\USER'

GRANT EXECUTE ON xp_readerrorlog TO "DOM\USER"

USE msdb

EXEC sp_adduser @loginame = 'DOM\USER' ,@name_in_db = 'DOM\USER'

EXEC sp_addrolemember N'db_datareader', N'DOM\USER'

EXECUTE sp_MSforeachdb 'USE [?]; EXEC sp_adduser @loginame  =''DOM\USER'', @name_in_db = ''DOM\USER'''

 

I have tried re-running the script and get a few errors because the user already exists in the server but usually the first time around there are no errors. I thought I would post here to see if others have had similar issues.


Viewing all articles
Browse latest Browse all 12281

Trending Articles



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