title: 'TRIM' is not a recognized built-in function name
body: <p>I have created simple function</p>
  
  <pre><code>create function TRIM(@data varchar(20)) returns varchar(100)
  as
  begin
    declare @str varchar(20)
    set @str = rtrim(ltrim(@data))
    return @str
  end
  </code></pre>
  
  <p>I am executing in the below way.</p>
  
  <pre><code>declare @s varchar(25)
  set @s = '      Amru    '
  select TRIM(@s)
  </code></pre>
  
  <p>I am getting the following error.</p>
  
  <pre><code>Msg 195, Level 15, State 10, Line 3
  'TRIM' is not a recognized built-in function name.
  </code></pre>
  
  <p>Could any one please help me find the issue?</p>