In Sql Server 2005 when I have multiple parameters do I have the guarantee that the evaluation order will always be from left to right?
Using an example:
select a from table where c=1 and d=2
In this query if the "c=1" condition fails the "d=2" condition will never be evaluated?
PS- "c" is an integer indexed column, d is a large varchar and non indexable column that requires a full table scan
update I was trying to avoid performing two queries or conditional statements, I just need something like: if "c condition" fails there's a way to avoid performing the heavy "d condition", since it's not needed in my case.