tags:

views:

29

answers:

2

I'm having problems executing a function...

Here's what I did:

  1. create a function using SQL Server Management Studio. It was successfully created.
  2. I then tried executing the newly created function and here's what I get:

The EXECUTE permission was denied on the object 'xxxxxxx', database 'zzzzzzz', schema 'dbo'.

+2  A: 

You don't have the right to execute it, although you have enough permissions to create it.

For more information, see GRANT Object Permissions (Transact-SQL)

Denis Valeev
+2  A: 

you need to run something like this

GRANT Execute ON [dbo].fnc_whatEver TO 'domain\user'
Iain