Hi Frans,
As always thanks for your quick reply. Yep, I'm aware this has absolutely nothing to do with LLBLGen
I've disected it down to its parts, even with just ONE parameter it's broken. It's a huge query, but essentially:
select .. where x=@1 takes 30s
select .. where x= 1 instant
I can rename the parameter -does nothing, option recompile does nothing. It simply doesn't work when I use a param - The execution plan is different.
Is there any stuff I could investigate (im using linq / self serv) that may help - perhaps index table hints / options etc? I just need a work around, anything. I'm trying 're-ordering' now.
Again, cheers for for your time,
f