简体   繁体   English

来自探查器的查询的执行计划

[英]Execution plan of query from profiler

I use SQL profiler to know how Entity Framework convert LINQ expression to sql use database. 我使用SQL事件探查器来了解实体框架如何将LINQ表达式转换为sql使用数据库。 When query is 'heavy' then I try to optimalize it by examine execution plan. 当查询“繁重”时,我尝试通过检查执行计划来优化查询。

Profiler (I use Profiler Express) give my query in this format Profiler(我使用Profiler Express)以这种格式提供查询

exec sp_executesql N'SELECT 
    [Project2].[Id] AS [Id], (... rest od query ... )
',@p__linq__0=N'test@mypage.com'

To see execution plan I have to convert (copy, paste code wrrr) to this format 要查看执行计划,我必须转换(复制,粘贴代码wrrr)为这种格式

DELARE @p__linq__0 NVARCHAR(100) =N'test@mypage.com'
SELECT 
[Project2].[Id] AS [Id], (... rest od query ... )

It is boring ,irritating etc. Does someony know page or somethig which do it for me? 太无聊,烦人了。Someony知道页面或somethig会为我做什么吗? Or I can just set it in options? 或者我可以在选项中进行设置?

启用“显示实际执行计划”并运行查询。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 查询执行计划-何时执行Where子句? - Query Execution Plan - When is the Where clause executed? 检索带有参数的查询的SQLite执行计划 - Retrieving SQLite execution plan for query with parameters 重写LINQ表达式查询以启用缓存SQL执行计划 - Rewriting a LINQ Expression query to enable caching SQL Execution Plan 是否可以从应用程序的执行中间启动性能分析器? - Is it possible to start performance profiler from middle of execution of an application? 实体框架超时但是从分析器查询在毫秒内执行 - Entity Framework times out but query from profiler executes within milliseconds 有没有办法以编程方式执行包含实际执行计划的查询,并查看是否有任何索引建议 - Are there any way to programmatically execute a query with Include Actual Execution Plan and see whether any index suggestion or not 以编程方式读取SQL Server的查询计划建议的SQL特定执行索引? - Programatically read SQL Server's query plan suggested indexes for a specific execution of SQL? 如何使用C#从SQL Server获取估计的执行计划? - How do I get an estimated execution plan from SQL Server using C#? 当查询包含声明的变量时,为什么在SQL Server Profiler中看不到来自实体框架的SQL查询? - Why is the SQL query from Entity Framework not visible in the Sql Server Profiler when query contains declared variables? 实体框架:多个声明执行计划 - Entity Framework: Multiple Where Statements Execution Plan
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM