title: sql calling custom function - tsql
body: <p>I am doing the following:</p>
  
  <pre><code>    Insert into table1 
     (Phone#) values @Phone
  </code></pre>
  
  <p>There is a custom function which will format the phone number. It accepts as input parameter the phone number and returns the formatted version.</p>
  
  <p>I tried the following but not sure it would not work:</p>
  
  <pre><code>    Insert into table1 
     (Phone#) values fn_phone(@Phone)
  </code></pre>
  
  <p>It says fn_phone is not a recognized built in function name. Am I doing something wrong on how I am calling fn_phone?</p>