Događaji
M03 31 23 - M04 2 23
Najveći događaj učenja jezika SQL, platforme Fabric i platforme Power BI. 31. mart - 2. april Koristite kod FABINSIDER da uštedite 400 dolara.
Registrirajte se danasOvaj preglednik više nije podržan.
Nadogradite na Microsoft Edge da iskoristite najnovije osobine, sigurnosna ažuriranja i tehničku podršku.
Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
SQL database in Microsoft Fabric
SQL Server Management Studio provides the ability to view the live execution plan of an active query. This live query plan provides real-time insights into the query execution process as the controls flow from one query plan operator to another. The live query plan displays the overall query progress and operator-level run-time execution statistics such as the number of rows produced, elapsed time, operator progress, etc. Because this data is available in real time without needing to wait for the query to complete, these execution statistics are extremely useful for debugging query performance issues. This feature is available starting with SQL Server 2016 (13.x) Management Studio, however it can work with SQL Server 2014 (12.x).
Bilješka
Internally, live query statistics leverages the sys.dm_exec_query_profiles DMV.
Applies to: SQL Server (starting with SQL Server 2014 (12.x)) and Azure SQL Database.
Upozorenje
This feature is primarily intended for troubleshooting purposes. Using this feature can moderately slow the overall query performance, especially in SQL Server 2014 (12.x). For more information, see Query Profiling Infrastructure.
This feature can be used with the Transact-SQL Debugger.
To view the live query execution plan, on the tools menu click the Include Live Query Statistics icon.
You can also view access the live query execution plan by right-clicking on a selected query in Management Studio and then click Include Live Query Statistics.
Now execute the query. The live query plan displays the overall query progress and the run-time execution statistics (e.g. elapsed time, progress, etc.) for the query plan operators. The query progress information and execution statistics are periodically updated while query execution is in progress. Use this information to understand the overall query execution process and to debug long running queries, queries that run indefinitely, queries that cause tempdb overflow, and timeout issues.
The live execution plan can also be accessed from the Activity Monitor by right-clicking on any query in the Processes or Active Expensive Queries table.
The statistics profile infrastructure must be enabled before live query statistics can capture information about the progress of queries. Depending on the version, the overhead may be significant. For more information on this overhead, see Query Profiling Infrastructure.
Requires the database level SHOWPLAN
permission to populate the Live Query Statistics results page, and requires any permissions necessary to execute the query.
On SQL Server, requires the server level VIEW SERVER STATE
permission to see the live statistics.
On SQL Database Premium Tiers, requires the VIEW DATABASE STATE
permission in the database to see the live statistics. On SQL Database Standard and Basic Tiers, requires the Server admin or Microsoft Entra admin account to see the live statistics.
Bilješka
Microsoft Entra ID was previously known as Azure Active Directory (Azure AD).
Execution Plans
Query Processing Architecture Guide
Monitor and Tune for Performance
Performance Monitoring and Tuning Tools
Open Activity Monitor (SQL Server Management Studio)
Activity Monitor
Monitoring Performance By Using the Query Store
sys.dm_exec_query_statistics_xml
sys.dm_exec_query_profiles
Trace flags
Showplan Logical and Physical Operators Reference
Query Profiling Infrastructure
Događaji
M03 31 23 - M04 2 23
Najveći događaj učenja jezika SQL, platforme Fabric i platforme Power BI. 31. mart - 2. april Koristite kod FABINSIDER da uštedite 400 dolara.
Registrirajte se danasObučavanje
Put učenja
Optimize query performance in Azure SQL - Training
Optimize query performance in Azure SQL
Certifikacija
Microsoft Certified: Azure Database Administrator Associate - Certifications
Administer an SQL Server database infrastructure for cloud, on-premises and hybrid relational databases using the Microsoft PaaS relational database offerings.
Dokumentacija
Performance monitoring and tuning tools - SQL Server
Learn about SQL Server monitoring and tuning tools and how to choose the right one depending on the type of monitoring and the events to monitor.
Monitor and Tune for Performance - SQL Server
Learn about monitoring databases to assess server performance, using periodic snapshots and gathering data continuously to track performance trends.
Performance Dashboard - SQL Server
Learn about SQL Server Management Studio Performance Dashboard, which provides fast insight into SQL Server and Azure SQL Managed Instance.