Background queries executing in sql causing db to go online

sam nick 366 Reputation points
2025-08-11T15:14:08.9133333+00:00

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.

User's image

User's image

The kind of sql staments in the extended events are like these. User's image

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
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alberto Morillo 34,846 Reputation points MVP Volunteer Moderator
    2025-08-11T17:54:33.0466667+00:00

    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..


Your answer

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