--- title: "sys.server_assembly_modules (Transact-SQL) | Microsoft Docs" ms.custom: "" ms.date: "03/15/2017" ms.prod: sql ms.prod_service: "database-engine" ms.reviewer: "" ms.technology: system-objects ms.topic: "language-reference" f1_keywords: - "server_assembly_modules_TSQL" - "sys.server_assembly_modules" - "server_assembly_modules" - "sys.server_assembly_modules_TSQL" dev_langs: - "TSQL" helpviewer_keywords: - "sys.server_assembly_modules catalog view" ms.assetid: af799e38-2d16-49b2-bcf5-6f9199af899e author: "stevestein" ms.author: "sstein" --- # sys.server_assembly_modules (Transact-SQL) [!INCLUDE[tsql-appliesto-ss2008-xxxx-xxxx-xxx-md](../../includes/tsql-appliesto-ss2008-xxxx-xxxx-xxx-md.md)] Contains one row for each assembly module for the server-level triggers of type TA. This view maps assembly triggers to the underlying CLR implementation. You can join this relation to **sys.server_triggers**. The assembly must be loaded into the **master** database. The tuple (object_id) is the key for the relation. |Column name|Data type|Description| |-----------------|---------------|-----------------| |**object_id**|**int**|This is a FOREIGN KEY reference back to the object upon which this assembly module is defined.| |**assembly_id**|**int**|ID of the assembly from which this module was created. The assembly must be loaded into the master database.| |**assembly_class**|**sysname**|Name of the class within assembly that defines this module.| |**assembly_method**|**sysname**|Name of the method within the class that defines this module. Is NULL for aggregate functions (AF).| |**execute_as_principal_id**|**int**|ID of the EXECUTE AS server principal.

NULL by default or if EXECUTE AS CALLER.

ID of the specified principal if EXECUTE AS SELF EXECUTE AS \.

-2 = EXECUTE AS OWNER.| ## Permissions [!INCLUDE[ssCatViewPerm](../../includes/sscatviewperm-md.md)] For more information, see [Metadata Visibility Configuration](../../relational-databases/security/metadata-visibility-configuration.md). ## See Also [Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/catalog-views-transact-sql.md) [Object Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/object-catalog-views-transact-sql.md)