Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

migrated from Mar 22 '13 at 10:37

This question came from our site for professional and enthusiast programmers.

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

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.