Sql Server, Query Optimization.
statement_start_offset, statement_end_offset) WHERE text = 'EXEC <YourStoredProcedure>' ); SELECT @xml_plan; -- Replace the following query with your actual join query DECLARE @YourJoinQuery NVARCHAR(MAX) = ' SELECT * FROM Table1 t1 INNER JOIN Table2 t2 ON t1.ID = t2.ID WHERE t1.SomeColumn =