title: How to apply functions stored in a column to other values in the row SQL?
body: <p>I have a table with function names 'testTable' and would like to use the functions stored in the 'Function' column on values 'Value 1' and 'Value 2'. The 'Function' stores the names of functions which I already have in my schema.</p>
  <p>I have this code, but obviously it does not like the <code>dbo.[Function]</code> I have tried using the function as a variable and without the 'dbo' but still, doesn't work.</p>
  <pre><code>SELECT *, 
  CASE 
      WHEN [Function] IS NOT NULL 
          THEN dbo.[Function]([Value 1],[Value 2])
      ELSE NULL END AS Result
  FROM testTable t
  </code></pre>
  <p>Thanks for any help!</p>