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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 UDA Grant Permission problem
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Aged Yak Warrior

United Kingdom
841 Posts

Posted - 04/30/2008 :  05:09:56  Show Profile  Reply with Quote
When I try and grant execute permission to an assembly like this:

I get this error:
Incorrect syntax near 'EXECUTE...'.

Any ideas?

Flowing Fount of Yak Knowledge

7266 Posts

Posted - 04/30/2008 :  21:43:16  Show Profile  Reply with Quote
Is lgnMyLogin a valid user of the db?
Go to Top of Page

Aged Yak Warrior

United Kingdom
841 Posts

Posted - 05/01/2008 :  04:18:52  Show Profile  Reply with Quote
seems to have something to do with this:
sounds complicated!

So here's what we ended up doing after reading the second last post here:

We haven't got to grips with the whole "CLR Integration Security" thing yet.
And with SP2, MS took away the ability to grant execute permission on UDA's.
The loopwhole is that they didn't take grant execute permission away on the database that the UDA sits in. So by doing GRANT EXECUTE on the entire database for your login, you still can get your login to have permission to execute your UDA without trying to fathom how "CLR Integration Security" works. It's a bit drastic, but it works!

Edited by - coolerbob on 11/17/2008 12:18:22
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000