I am using SQL Server 2008 R2. I tried creating a new scalar function. The function gets created and I see it in the list of scalar functions.

When I try to modify function, function name is underlined in red and the mouseover text says

Invalid Object Name 'dbo.fnGetXName'

If I write a query and try to ref any function, intellisense shows no functions after typing dbo.. It doesn't seem to matter what I name the new function, the same issue arises

  • Check scheme in which you create a function of yours. It might end up in sys. scheme, for example.
    – Vesper
    Mar 22, 2013 at 9:24
  • 1
    It may be intellisense error sometime. As intellisense don't work consistently always in Management studio for me too sometime.
    – Divine
    Mar 22, 2013 at 9:26

1 Answer 1


Try refreshing the Intlisense cache.

Hit crtl+shft+R

From SQL Server Management Studio Keyboard Shortcuts

Refresh local cache

Or under

EDIT->IntelliSense->Refresh Local Cache

  • Added to favorites Jan 30, 2019 at 15:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.