RE: SQL CLR permissions needed after deployment to target server (
- From: theartiststillknownasgarvin <tommyg@xxxxxxxxxxxxx>
- Date: Mon, 28 Jan 2008 06:22:03 -0800
Thanks.
Not really sure which group this type of question should be posted in, since
it covers both programming and security.
"Charles Wang[MSFT]" wrote:
Hi,.
Thank you for posting here!
I notice that you have posted the same question in our
microsoft.public.sqlserver. programming newsgroup, which I have already
responded. So please check my answer there and if you need any further
assistance on this particular issue, please reply to me in that thread so I
can follow up with you in time.
For your convenience, I have included my reply as follows:
------------------
I understand that you encounter the permission issue when you run your CLR
assemblies on your server side.
If I have misunderstood, please let me know.
It seemed that EXTERNAL_ACCESS was not granted to your assembly. I
recommend that you try setting your database to trustworthy and then
elevate the PERMISSION_SET of your assembly to EXTERNAL_ACCESS, such as:
ALTER DATABASE YourDatabaseName SET TRUSTWORTHY ON
Go
ALTER ASSEMBLY YourAssemblyName WITH PERMISSION_SET = EXTERNAL_ACCESS
Go
Also I would like to let you know that the current assembly
System.Data.SqlClient is not a supported assembly for SQL Server. Please
carefully test it to see if there is any issue after you deploy it. You may
refer to this KB article:
Support policy for untested .NET Framework assemblies in the SQL Server
2005 CLR-hosted environment
http://support.microsoft.com/default.aspx?scid=kb;EN-US;922672
Hope this helps. Please feel free to let me know if you have any other
questions or concerns.
------------------
Thank you and have a nice day!
Best regards,
Charles Wang
Microsoft Online Community Support
======================================================
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================
- References:
- RE: SQL CLR permissions needed after deployment to target server (not
- From: Charles Wang[MSFT]
- RE: SQL CLR permissions needed after deployment to target server (not
- Prev by Date: Re: SQL Server 2005 security question
- Next by Date: Linked Server Authentication Help - Login Failed
- Previous by thread: RE: SQL CLR permissions needed after deployment to target server (not
- Next by thread: RE: .NET Code Access Security fundamentals
- Index(es):
Relevant Pages
|
|