Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI People,

I am searching for this option trustworthy, why it has to be Enabled before creating assembly in our database. I have tried trustworthy option with OFF i am getting below Error.

In Mirroring Asynchronous mode also we have to use this option some where while mirror server getting online.

Please suggest me what is the actual reason to use this trustworthy option.





Msg 10327, Level 14, State 1, Line 1
CREATE ASSEMBLY for assembly 'encdec' failed because assembly 'encdec' is not authorized for PERMISSION_SET = UNSAFE. The assembly is authorized when either of the following is true: the database owner (DBO) has UNSAFE 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 UNSAFE ASSEMBLY permission. If you have restored or attached this database, make sure the database owner is mapped to the correct login on this server. If not, use sp_changedbowner to fix the problem.





Regard's,
Thrilok,
SQL DBA.
Posted

1 solution

 
Share this answer
 
Comments
Thrilok SQL DBA 25-Sep-14 1:09am    
Hi Jonsson,

The solution what you have given thats really wonderful solution.


Thankyou,
Thrilok.
George Jonsson 25-Sep-14 3:07am    
You are welcome.
Just mark your question as answered so others might use it too if it is helpful.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900