I'm using SQL Server 2005 and I've got a fairly complex query which is taking a second or two to execute.
I wanted to debug performance using the query plan, but when I include the actual execution plan in the output, the query goes from taking 2 seconds to nearly 2 minutes - sometimes a lot longer.
The only somewhat interesting code in this query are a couple of cross applies against a table valued function. Interestingly, when I remove these cross applies, the query executes in about 100ms.
Is this a known issue?