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
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 EXEC permission on UDF

Author  Topic 

pithhelmet
Posting Yak Master

183 Posts

Posted - 2007-11-19 : 11:14:28
Hi everyone,

I am trying to create a UDF, the creation works fine -
but i cannot set the EXEC permission...

I see the column, but there is no checkbox that will allow
it to be executed.

In other UDFs, the checkbox is there and I can remove and replace the EXEC permission, just not in the newly created UDF

ANyone have any ideas on this??

thanks
tony

dinakar
Master Smack Fu Yak Hacker

2507 Posts

Posted - 2007-11-19 : 12:11:56
did you create it with dbo as the owner?

CREATE FUNCTION dbo.SomeFunction(...

Dinakar Nethi
************************
Life is short. Enjoy it.
************************
http://weblogs.sqlteam.com/dinakar/
Go to Top of Page

pithhelmet
Posting Yak Master

183 Posts

Posted - 2007-11-19 : 14:51:57
yes
Go to Top of Page

anonymous1
Posting Yak Master

185 Posts

Posted - 2007-11-19 : 15:09:14
is there an error trying to use tsql?

GRANT EXECUTE ON [dbo].[somefunction] TO [guest]
GO
Go to Top of Page

pithhelmet
Posting Yak Master

183 Posts

Posted - 2007-11-19 : 16:18:53
tried that as well....

Server: Msg 4606, Level 16, State 1, Line 1
Granted or revoked privilege EXECUTE is not compatible with object.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-11-19 : 16:27:49
What kind of UDF is it? If it's a table function, then you grant SELECT on it and not EXEC.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

pithhelmet
Posting Yak Master

183 Posts

Posted - 2007-11-20 : 08:18:22
Hi Tara and everyone,

After review, it is a table based return.

thanks for your help

take care
tony
Go to Top of Page
   

- Advertisement -