Use the SQL Server connection workflow to add a SQL Server instance to Mini DBA monitoring. SQL Server monitoring uses database permissions for DMVs, metadata, jobs, Query Store, events, and logs. Optional Windows host access adds performance counter and WMI metrics.
In Servers, select Add Server and choose SQL Server.
| Field | What to enter |
|---|---|
| Type | SQL Server |
| Instance / Host | SQL Server host or SERVER\INSTANCE |
| Username | Leave blank for Windows authentication, or enter a SQL login |
| Password | Password for the SQL login |
The Mini DBA Engine must be able to reach the SQL Server listener and authenticate with the account you enter.
With the required SQL Server permissions, Mini DBA can collect the information used by SQL Server monitoring pages:
Optional permissions unlock optional features. For example, SQL Server Agent job monitoring needs access to msdb job tables, while profiler and instant deadlock detection depend on Extended Events permissions.
The SQL Server permissions modal checks:
master and tempdb.Run this as a SQL Server administrator. Change the login name and password first.
USE [master];
GO
CREATE LOGIN [minidba_monitor]
WITH PASSWORD = 'UseASecretPasswordHere';
GO
CREATE USER [minidba_monitor] FOR LOGIN [minidba_monitor];
GO
GRANT VIEW SERVER STATE TO [minidba_monitor];
GRANT VIEW ANY DATABASE TO [minidba_monitor];
GRANT VIEW ANY DEFINITION TO [minidba_monitor];
GRANT EXEC ON XP_READERRORLOG TO [minidba_monitor];
GRANT ALTER TRACE TO [minidba_monitor];
GRANT ALTER ANY EVENT SESSION TO [minidba_monitor];
GO
USE [msdb];
GO
CREATE USER [minidba_monitor] FOR LOGIN [minidba_monitor];
ALTER ROLE SQLAgentReaderRole ADD MEMBER [minidba_monitor];
ALTER ROLE db_datareader ADD MEMBER [minidba_monitor];
GO
If you use Windows authentication, grant the same permissions to the Windows principal, for example [DOMAIN\minidba-monitor].
If you want default trace dependent features on supported SQL Server versions, enable it with:
EXEC sp_configure 'show advanced options', 1;
RECONFIGURE;
EXEC sp_configure 'default trace enabled', 1;
RECONFIGURE;
After adding the SQL Server, open the server in the navigation tree and open the SQL Server Connectivity Permissions modal. Select Refresh to probe the current login. The modal shows each permission as OK or NO and includes the exact T-SQL to grant missing access.
Use this modal after:
SQL Server exposes some host OS information through SQL Server DMVs, including host OS platform, distribution, and release where available.
For extra Windows host metrics, Mini DBA checks:
The Windows account used by Mini DBA needs appropriate local or domain access, including Performance Monitor Users, Performance Log Users, Event Log Readers, WMI root\cimv2 access, Windows Management Instrumentation firewall rules, and Remote Registry where required. Use Enable WMI For SQL Server Monitoring for the step-by-step Windows WMI setup.
For general host OS guidance, see Host OS Login.
master and tempdb appear, grant VIEW ANY DATABASE.msdb SQLAgentReaderRole and db_datareader.EXEC on xp_readerrorlog and review Extended Events permissions.Yes. Leave Username blank in the Add Server panel for Windows authentication. The Mini DBA Engine process identity must have SQL Server access and the required SQL Server permissions.
No. Sysadmin is convenient for testing but not recommended for routine monitoring. Use the grants shown above for a least-privilege monitoring login.
The permission modal notes that Mini DBA uses ALTER TRACE to show running traces. The app does not alter running traces just because the permission exists.
VIEW SERVER STATE is the most important SQL Server monitoring permission. Without it, many DMV-based pages cannot show useful activity, wait, query, CPU, and memory data.