How to monitor user`s queries in Azure SQL DB?

Vitalii Liashuk 160 Reputation points
2023-10-19T12:00:07.8266667+00:00

Hi,

I want to monitor user`s queries in Azure SQL DB. When user make some manual changes it is a risk and I want to know when somebody connects to sql db and execute some query.

Does Microsoft has solution for my request?

Thank you!

Azure SQL Database
SQL Server Other
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 29,542 Reputation points Microsoft Employee Moderator
    2023-10-19T16:52:50.56+00:00

    @Vitalii Liashuk Thanks for clarifying your question.

    There are multiple options, what works best really depends on the knowledge of SQL, tools, and troubleshooting.  For example, you can use Query Store reports that exist in SSMS.  Query Store is a feature in SQL Server that captures a history of queries, query plans, and runtime statistics.

    you can follow this document https://learn.microsoft.com/en-us/sql/relational-databases/performance/monitoring-performance-by-using-the-query-store?view=sql-server-ver15

    Let me know if this helps

    Regards

    Geetha

    0 comments No comments

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.