• As a bit of additional info, intellisense picks up the function correctly.

    But still getting:

    select dbo.RAT(' ',' hey there dudes',1)

    Msg 4121, Level 16, State 1, Line 1

    Cannot find either column "dbo" or the user-defined function or aggregate "dbo.RCHARINDEX", or the name is ambiguous.