Take the 2-minute tour ×
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.

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 stackoverflow.com 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
1  
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

1 Answer 1

up vote 5 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

 
discard

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