Re: CLR Stored Procedure "Failed to get permission to execute"
- From: "JohnD" <johnd@xxxxxxxxxx>
- Date: Thu, 28 Jun 2007 12:57:30 +0100
Hello Eric,
The consensus is (I think), that you can use pInvoke to call an unmanaged DLL from a managed stored procedure. However, it looks like calling a MIXED (ie managed and unmanaged) DLL is not going to work. You can look at the thread I started on the sqlserver.programming group for more information.
It seems that mixed and/or managed DLLs need to be added to SQL with CREATE ASSEMBLY, and this fails on a mixed dll, even if set it as UNSAFE. I'd like to establish if that is expected to work, but I suspect it is failing for good reason.
/john
"Eric" wrote in message news:200762618736eric_hackett@xxxxxxxxxxxxxxxxxxx
Did you find any satisfaction for this? I have a nearly identical problem. Using a third party dll, wrapping it with my own dll, and then writing CLR stored proc to use wrapped function. Other functions in the stored proc dll work. Only the ones that need external resources are choking.
Please reply here if you get this working.
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
.
- References:
- Prev by Date: Re: Permission problems user can't create a table
- Next by Date: Re: Permission problems user can't create a table
- Previous by thread: CLR Stored Procedure "Failed to get permission to execute"
- Next by thread: Login Authentication for Standard Accounts
- Index(es):
Relevant Pages
|
|