How to use Extended Event in Azure SQL Database

时间:2017-12-18 07:44:51

标签: entity-framework azure-sql-database ssms

I was working with SQL Server database before and now move to Azure SQL database. SQL Profiler in SSMS in preety tool to capture query performance and raw query generated from Entityframework which help to find out some issue in our application.

But Azure SQL Database does not have SQL Profiling feature so i am thinking to use Extended Event session for query tracking in SSMS. But "Watch Live Data" button while right click in session is always grey out and disabled in Azure SQL Database and i found that feature not available in SQl Database. So how can I track query like in SQL Profiler while using Extended Event Session in Azure SQL Database ?

1 个答案:

答案 0 :(得分:1)

从SQL Server 2016开始,不推荐使用SQL Server Profiler。您可以启用Query Store。通过查询存储,您可以查看针对给定数据库执行的最后查询。查询文本存储在视图sys.query_store_query_text中,执行计划存储在sys.query_store_plan中。从执行计划中,您可以解决任何性能问题。

对于查询性能,Azure SQL数据库提供了一些可能感兴趣的图形工具:性能概述,Performance RecommendationQuery Performance InsightAutomatic Tuning。这些工具可通过Azure门户获得。