Check If SQL Server Database is TrustWorthy for CLR Creation
To create CLR objects like User-Defined Functions, Stored Procedure, Triggers on SQL Server database, enabling TrustWorthy property of the database is one option for passing security issues for SQL developers. This guides shows how SQL Server professionals can check whether the database is set as TrustWorthy or not.
Launch SQL Server Management Studio (SSMS).
Connect to target SQL Server instance.
On Object Explorer window, right click on the target SQL Server database and choose Properties context menu option.
On database Options page, in Miscellaneous group you will see an option "Trustworthy" either set to False (by default) or to True.
On SQL Server, database administrators can alter Trustworthy property of a database executiong one of the following SQL commands after replacing your target database with sample database name shared here
Another way to check whether a database is set as TRUSTWORTHY or not is to query the sys.databases system view for is_trustworthy_on column value as follows.