An Azure relational database service.
Hi Paul Hart,
The database is not pausing because at least one connection is still active, which resets the auto-pause timer even if there is no visible user activity.
Run the below query to identify exactly what is keeping it awake, including application name and client IP:
SELECT
s.session_id,
s.login_name,
s.host_name,
s.program_name,
c.client_net_address
FROM sys.dm_exec_sessions s
JOIN sys.dm_exec_connections c
ON s.session_id = c.session_id
WHERE s.session_id <> @@SPID
AND s.is_user_process = 1;
Check program_name and client_net_address to find the source (SSMS, app, monitoring tool, etc.) and stop that connection. You can also confirm triggers from Azure Portal → Monitor → Activity Log by filtering “Resume Database” and checking the caller.
Once all sessions drop to zero, the serverless database will auto-pause as expected.
Reference Link:
https://learn.microsoft.com/azure/azure-sql/database/serverless-tier-overview#auto-pause
Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.
Please do not forget to "Accept Answer" and "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.