forum

Home / DeveloperSection / Forums / SQL Server: what will trigger execution plan?

SQL Server: what will trigger execution plan?

Pravesh Singh198708-May-2013
Hi Everyone!

If I have statement

DECLARE @i INT;
DECLARE @d NUMERIC(9,3);
SET @i = 123;
SET @d = @i;
SELECT @d;

and I include actual execution plan and run this query, I don't get an execution plan. Will the query trigger execution plan only when there is FROM statement in the batch?

Thanks in advance! 

Updated on 08-May-2013

Can you answer this question?


Answer

1 Answers

Liked By