Table of Contents

Class ObjectSchema.ServerAssemblyModule

Namespace
LinqToDB.Tools.DataProvider.SqlServer.Schemas
Assembly
linq2db.Tools.dll

sys.server_assembly_modules (Transact-SQL)

Applies to: √ SQL Server (all supported versions)

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.


See sys.server_assembly_modules.

[Table(Schema = "sys", Name = "server_assembly_modules", IsView = true)]
public class ObjectSchema.ServerAssemblyModule
Inheritance
ObjectSchema.ServerAssemblyModule
Extension Methods

Properties

AssemblyClass

Name of the class within assembly that defines this module.

[Column("assembly_class")]
[Nullable]
public string? AssemblyClass { get; set; }

Property Value

string

AssemblyID

ID of the assembly from which this module was created. The assembly must be loaded into the master database.

[Column("assembly_id")]
[NotNull]
public int AssemblyID { get; set; }

Property Value

int

AssemblyMethod

Name of the method within the class that defines this module. Is NULL for aggregate functions (AF).

[Column("assembly_method")]
[Nullable]
public string? AssemblyMethod { get; set; }

Property Value

string

ExecuteAsPrincipalID

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 <principal>.

-2 = EXECUTE AS OWNER.

[Column("execute_as_principal_id")]
[Nullable]
public int? ExecuteAsPrincipalID { get; set; }

Property Value

int?

Object

objects (sys.objects)

[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = false)]
public ObjectSchema.Object Object { get; set; }

Property Value

ObjectSchema.Object

ObjectID

This is a FOREIGN KEY reference back to the object upon which this assembly module is defined.

[Column("object_id")]
[NotNull]
public int ObjectID { get; set; }

Property Value

int