I have a LINQ to SQL query that's created dynamically. Funny thing is, when I run it in SQL Management Studio it's lightning fast. When I run it from L2S it becomes awefully slow after a while.
This is probably because of the query plan/execution path. When I restart SQL Server the L2S query is also lightning fast again.
Now with T-SQL you can have WITH RECOMPILE. But how to do this with L2S?