title: Calling a function from within a select statement - SQL
body: <p>I have the following statement:</p>
  
  <pre><code>SELECT CASE WHEN (1 = 1) THEN 10 ELSE dbo.at_Test_Function(5) END AS Result 
  </code></pre>
  
  <p>I just want to confirm that in this case the function wont be executed? </p>
  
  <p>My reason for asking is that the function is particularly slow and if the critiria is true I want to avoid calling the function...</p>
  
  <p>Cheers
  Anthony</p>