About System.Data.SqlClient.SqlClientPermission of a different

According to the "MS-SQL Server difficult problems" version zlp321002 (tornado 2006) approach to this issue is resolved, and now excerpts from his posts as follows, common look:

very grateful for the help zlp321002 (tornado 2006) is
also thanks above all of you help and attention, thank you

extract zlp321002 (tornado 2006) posts are as follows:


reply people: zlp321002 (tornado 2006) (Samsung (advanced)) reputation: 1042006-5-31 10:29:38 score: 50


- Yes not without access to external resources I have encountered this problem in dealing with the CLR..

the CREATE ASSEMBLY Submit_Answer
the FROM 'D: \ Study \ C # \ evaluation system \ WebSite1 \ StoredProcedure \ Submit_Answer \ bin \ Debug \ Submit_Answer.dll' ;
GO
- read:

the CREATE ASSEMBLY Submit_Answer
the FROM 'D: \ Study \ C # \ evaluation system \ WebSite1 \ StoredProcedure \ Submit_Answer \ bin \ Debug \ Submit_Answer.dll';
GO
the WITH PERMISSION_SET = UNSAFE
GO


1: enable CLR database support
- - ***********************************************
The sp_configure EXEC 'Show advanced Options', '. 1';
Go
the reconfigure;
Go
EXEC the sp_configure 'Enabled CLR', '. 1'
Go
- ************************************************************ **************************
2: trust mode changes to the database (the assembly is correctly added to)
the TRUSTWORTHY {the ON | OFF}
the ON
analog context the database module (e.g., user-defined stored procedures or functions) can access resources outside the database.

OFF
simulated context database module can not access resources outside the database.
- ***********************************************
Alter database database name
the SET the TRUSTWORTHY ON
- ****************************************** ***** surrogate [electric 13,802,269,370]   Beijing surrogate [electric 13,802,269,370]   Zhengzhou surrogate [electric 13,802,269,370]   Shenzhen surrogate [electric 13,802,269,370]

Guess you like

Origin www.cnblogs.com/bbc2020/p/12484964.html