简体   繁体   中英

Execution plan of query from profiler

I use SQL profiler to know how Entity Framework convert LINQ expression to sql use database. 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

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

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? Or I can just set it in options?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM