Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CLR Triggers
Message
De
31/10/2007 04:38:05
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
CLR Triggers
Divers
Thread ID:
01265287
Message ID:
01265287
Vues:
63
Hi Guys,

I've created a generic CLR Trigger that caters the Audit Trail of my SQL Tables. It is a generic trigger but it still needs to be attached to every table. My question is that is it possible to acquire the name of the Trigger that is currently being executed?

All triggers that were associated for each table were named the same as the table name. The purpose is to have a reference that will serve as the table name since there is no way to acquire the table name on DMLs'.

I'm thinking of calling a Stored Procedure within the CLR Trigger and passing it the @@ProcId so it can retrieve the name of the trigger.
Unfortunately, this doesn't seem to work.

Am I missing on something? or are there more elegant ways on how to do it?


Thanks in advance...
Music Rocks www.musicreserve.blogspot.com
Success is 1% Inspiration & 99% Perspiration
God Sometimes Delays His Help to Test Our Faith and Energize Our Prayers
Our Boat May Be Tossed While He Sleeps, But He Wakes Up Before it Sinks.
Répondre
Fil
Voir

Click here to load this message in the networking platform