SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

coolerbob
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:
GRANT EXECUTE ON ASSEMBLY::[UDAs] TO [lgnMyLogin]

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

Any ideas?

rmiao
Flowing Fount of Yak Knowledge

USA
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

coolerbob
Aged Yak Warrior

United Kingdom
841 Posts

Posted - 05/01/2008 :  04:18:52  Show Profile  Reply with Quote
yes
seems to have something to do with this:
http://blogs.msdn.com/sqlprogrammability/archive/2007/02/22/why-cannot-i-grant-execute-permission-on-assemblies-anymore.aspx
sounds complicated!

ANSWER:
So here's what we ended up doing after reading the second last post here:
http://blogs.msdn.com/sqlprogrammability/

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  
 New 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.06 seconds. Powered By: Snitz Forums 2000