Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Scalar-valued Functions

Author  Topic 

xrum
Yak Posting Veteran

87 Posts

Posted - 2011-09-01 : 15:21:52
Hi,

I have migrated a database from oracle, and now have a few Scalar-valued Functions.

however, when I call them, i get an error saying

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

i'm calling it like this: SELECT dbo.chk_mgr('asdf')

what am i doing wrong?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-09-01 : 15:36:23
Have you verified that dbo.chk_mgr exists? It's probably owned by a different schema.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2011-09-01 : 18:03:54
Make sure that this doesn't work SELECT dbo.[dbo.chk_mgr]('asdf')

Jim



Everyday I learn something that somebody else already knew
Go to Top of Page
   

- Advertisement -