A CLR trigger could be a Date Definition or Date Manipulation Language trigger or could be an AFTER or INSTEAD OF trigger.
Methods written in managed codes that are members of an assembly need to be executed provided the assembly is deployed in SQL 2005 using the CREATE assembly statement.
The Microsoft.SqlServer.Server Namespace contains the required classes and enumerations for this objective.
steps for creating CLR Trigger
Follow these steps to create a CLR trigger of DML (after) type to perform an insert action:
- Create a .NET class of triggering action
- Make an assembly (.DLL) from that Class
- Enable CLR environment in that database.
- Register the assembly in SQL Server
- Create CLR Trigger using that assembly

0 Comments:
Post a Comment