Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Public UDF
Message
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Public UDF
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01141128
Message ID:
01141128
Views:
58
I would like to create a public UDF and use it in a SELECT statement. The UDF works correctly when it's located in the same database but I don't want to have to update multiple databases if the UDF ever changes. I have created a UDF and issued -
GRANT Execute ON myudf to public
How can I then use this UDF in a SELECT in a different database without referencing the database that the UDF is in? I get the error "Invalid object name 'dbo.myudf' when executing -
SELECT dbo.myudf()
TIA

-Dan
Next
Reply
Map
View

Click here to load this message in the networking platform