MS-SQL Server, INTERNALS, IF clause

MS-SQL Server, INTERNALS, IF clause

Post by Oz Ben Elieze » Sun, 29 Oct 2000 02:24:06



Hey all,

I'm using MS-SQL Server 2000.

My question is this -
When using an IF clause in a stored procedure - suppose it has several ANDs,
like:



unncessarily? I need to write an IF clause with about 100 of those
comparisons, and I need it to evaluate as quickly as possible. If the answer
to the previous question is yes, what would you suggest I do?

Thanks,
Oz

 
 
 

MS-SQL Server, INTERNALS, IF clause

Post by Hemo » Wed, 01 Nov 2000 02:31:26


I believe that is stops on the first failure, though that was in 6.5 and
many years ago that I tested this.



> Hey all,

> I'm using MS-SQL Server 2000.

> My question is this -
> When using an IF clause in a stored procedure - suppose it has several
ANDs,
> like:



> unncessarily? I need to write an IF clause with about 100 of those
> comparisons, and I need it to evaluate as quickly as possible. If the
answer
> to the previous question is yes, what would you suggest I do?

> Thanks,
> Oz