June 6, 2006 at 2:51 pm
I have developed in a User Defined Function in ADO.NET 2.0.
When I tried to deploy it I got the following message (Visual Studio):
“CREATE ASSEMBLY for assembly 'SqlUDFDirectoryListing' failed because assembly 'SqlUDFDirectoryListing' is not authorized for PERMISSION_SET = EXTERNAL_ACCESS. The assembly is authorized when either of the following is true: the database owner (DBO) has EXTERNAL ACCESS ASSEMBLY permission and the database has the TRUSTWORTHY database property on; or the assembly is signed with a certificate or an asymmetric key that has a corresponding login with EXTERNAL ACCESS ASSEMBLY permission.”
I tried:
What am I doing wrong?
Thank you very much for your help,
Dinu
June 9, 2006 at 8:00 am
This was removed by the editor as SPAM
July 5, 2006 at 9:22 am
The EXTERNAL_ACCESS privilege must be granted to a database user that maps to a WindowsNT user. Usually, this is the SQL Service account.
This, of course, may be a security risk => consult Books Online for details. Anyway, such privileges must be under strict control - only grant execute privileges for this procedure to a specific group of users.
The more important question IMHO would be why the assembly needs access to external resources.
ML
ML
---
Matija Lah, SQL Server MVP
http://milambda.blogspot.com
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply