--- title: "sys.sp_add_trusted_assembly (Transact-SQL) | Microsoft Docs" ms.custom: "" ms.date: "06/14/2017" ms.prod: sql ms.technology: system-objects ms.topic: "language-reference" f1_keywords: - "sp_add_trusted_assembly_TSQL" - "sp_add_trusted_assembly" - "sys.sp_add_trusted_assembly_TSQL" - "sys.sp_add_trusted_assembly" dev_langs: - "TSQL" helpviewer_keywords: - "sys.sp_add_trusted_assembly" ms.assetid: author: VanMSFT ms.author: vanto monikerRange: ">=sql-server-2017||=sqlallproducts-allversions||>=sql-server-linux-2017||=azuresqldb-mi-current" --- # sys.sp_add_trusted_assembly (Transact-SQL) [!INCLUDE[tsql-appliesto-ss2017-asdbmi-xxxx-xxx-md](../../includes/tsql-appliesto-ss2017-asdbmi-xxxx-xxx-md.md)] Adds an assembly to the list of trusted assemblies for the server. ![Topic link icon](../../database-engine/configure-windows/media/topic-link.gif "Topic link icon") [Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md) ## Syntax ``` sp_add_trusted_assembly [ @hash = ] 'value' [ , [ @description = ] 'description' ] ``` ## Remarks This procedure adds an assembly to [sys.trusted_assemblies](../../relational-databases/system-catalog-views/sys-trusted-assemblies-transact-sql.md). ## Arguments [ @hash = ] '*value*' The SHA2_512 hash value of the assembly to add to the list of trusted assemblies for the server. Trusted assemblies may load when [CLR strict security](../../database-engine/configure-windows/clr-strict-security.md) is enabled, even if the assembly is unsigned or the database is not marked as trustworthy. [ @description = ] '*description*' Optional user-defined description of the assembly. Microsoft recommends using the canonical name that encodes the simple name, version number, culture, public key, and architecture of the assembly to trust. This value uniquely identifies the assembly on the common language runtime (CLR) side and is the same as the clr_name value in sys.assemblies. ## Permissions Requires membership in the `sysadmin` fixed server role or `CONTROL SERVER` permission. ## Examples The following example adds an assembly named `pointudt` to the list of trusted assemblies for the server. These values are available from [sys.assemblies](../../relational-databases/system-catalog-views/sys-assemblies-transact-sql.md). ``` EXEC sp_add_trusted_assembly 0x8893AD6D78D14EE43DF482E2EAD44123E3A0B684A8873C3F7BF3B5E8D8F09503F3E62370CE742BBC96FE3394477214B84C7C1B0F7A04DCC788FA99C2C09DFCCC, N'pointudt, version=0.0.0.0, culture=neutral, publickeytoken=null, processorarchitecture=msil'; ``` ## See Also [sys.sp_drop_trusted_assembly](sys-sp-drop-trusted-assembly-transact-sql.md) [sys.trusted_assemblies](../../relational-databases/system-catalog-views/sys-trusted-assemblies-transact-sql.md) [CREATE ASSEMBLY (Transact-SQL)](../../t-sql/statements/create-assembly-transact-sql.md) [CLR strict security](../../database-engine/configure-windows/clr-strict-security.md) [sys.assemblies](../../relational-databases/system-catalog-views/sys-assemblies-transact-sql.md) [sys.dm_clr_loaded_assemblies](../../relational-databases/system-dynamic-management-views/sys-dm-clr-loaded-assemblies-transact-sql.md)