We did:
set option plancost on
set showplan on
set fmtonly on
exec sp1
We get the text version of plan but no lava plan tree for our queries. We see lava tree for the UDFs used inside queries although. Wanted to know estimated cost on each branch. Anyway out?
Another question is:
We have 'deferred compiltaion' option on. So our queries in SPs run as LWPs inside proc cache. But sp_showplan does not show any plan for the running query. Any way out?
Thanks,
Apurba K. Saha