Thursday, February 7, 2008

Granted or revoked privilege EXECUTE is not compatible with object

Why can't I grant exec rights on my user defined function in SQL Server?

Well, I did it again. Scratching my head I inspected the function and it was staring me right in the face--it returns a table. So, I needed to grant SELECT rights--not EXECUTE rights.

Let me know if this helps you!

15 comments:

Anonymous said...

This helped me -- thank you.

Luke said...

Thanks, saved me a lot of time!

Teun said...

Yes, thanks

zwanz0r said...

Helped me too, I was doing the exact same thing.

Anonymous said...

Super helpful. Many thanks!

Anonymous said...

Helped me too. Thanks!

Anonymous said...

Thanks, this helped me

Anonymous said...

Helped me too. Thanks!

Anonymous said...

Thanks, It helped me as well :)

Anonymous said...

Thanks! :)

Anonymous said...

Thanks - worked for me!

Ryan Gates said...

I know others have said it, but thanks for posting this. Saved me time and frustration.

Campell said...

+1

Anonymous said...

THANKS! It saved me from frustration. Wish I learned this earlier!

Anonymous said...

Wonderful!!