It seems like schema discovery queries coming from Power BI Service/Gateway, even when dataset refresh is off, the service and/or on-premises data gateway may periodically validate connections and read schema (do some background health checks). Try to remove the data source for that database on the gateway or delete connections to that database on any dataset that use the database..
Background queries executing in sql causing db to go online
Hi,
I have a SQL DB that is serverless and not in use except for two times in day (for approx 15 min each). But oddly, I am noticing that the DB stays online (though autopause set to 1 hour) lot more often. I noticed that there are background queries being executed quite often under my username from power BI. We used this DB against multiple power bi report a while ago, and no power bi reports are set to refresh using this DB.
While looking at the extended events (as auditing was enabled), I see that almost all of the events are like the below (with the ip of msft's datacenter) with using power bi.
The kind of sql staments in the extended events are like these.
Any recommendations on how to troubleshoot this further and figure out what is using my credentials to generate these queries, resulting in the serverless DB to wake up often and stay online (incurring charges).
Thank you.
Azure SQL Database
1 answer
Sort by: Most helpful
-
Alberto Morillo 34,846 Reputation points MVP Volunteer Moderator
2025-08-11T17:54:33.0466667+00:00