views:

27

answers:

2

Is it possible to create a database/DDL trigger in C#? And, if so, then how?

[EDIT]

Basically, I decided to use CLR for the database trigger because I want to utilize C# SMO to script the objects that change and insert the object script into a table that tracks versions of database objects.

+1  A: 

See: Programming CLR Triggers

Joe Stefanelli
A: 

Or See: CLR Triggers Continue toward the bottom for DDL example.

Jeff O