Hi, I have a very resource intensive query that I tested using a direct criteria eg where field='x'. Whilst testing on a sample of 1 row, this took 2 seconds. When I substitute the field='x' to field = @variable where I have defined the variable to be 'x' it takes 43 seconds..... ??
This is driving me nuts and i cant understand why such a difference, any ideas guys?