Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 IF - Are all conditions evaluated, or will it bail?

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-11-30 : 00:02:20
Dave writes "Will this:

IF (0=1) AND (<query that takes 45 seconds>)

evaluate more quickly than this:

IF (<query that takes 45 seconds>) AND (0=1)

I'm using SQL Server 2000.

Thanks!
Dave"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-11-30 : 02:57:28
Set the execution plan and test

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -