Database Watcher - Not able to connect and collect data from Azure SQL Database

Mitesh Prajapati 40 Reputation points
2025-03-20T03:16:04.4466667+00:00

We have created Database Watcher and trying to connect it with SQL authentication. It doesn't show up any database under dashboard.

Azure Database Migration Service

Answer accepted by question author
PratikLad 1,905 Reputation points Microsoft External Staff Moderator
2025-04-28T12:26:25.3766667+00:00

Hi Mitesh Prajapati

The document link shows the exact permission required by Watcher. You have to ensure that the user (because it is SQL Auth here) has exactly those permissions. Not less not more. You can do this via SMSS or the script (can be downloaded through the add target blade).

To allow a watcher to collect SQL monitoring data, you must execute a T-SQL script that grants the watcher specific, limited SQL permissions. The user should not be assigned any additional permissions.


CREATE LOGIN [login-name-placeholder] WITH PASSWORD = 'password-placeholder';

ALTER SERVER ROLE ##MS_ServerPerformanceStateReader## ADD MEMBER [login-name-placeholder];

ALTER SERVER ROLE ##MS_DefinitionReader## ADD MEMBER [login-name-placeholder];

ALTER SERVER ROLE ##MS_DatabaseConnector## ADD MEMBER [login-name-placeholder];

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Newest

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.