jeudi 2 avril 2015

SQL Server: how to check inside the trigger is Insert/Update is done via stored pProcedure

Using SQL Sever 2005.


From inside a trigger on a table, is there a way to find out if the insert/update is being done via a stored procedure and if not throw an error?


Aucun commentaire:

Enregistrer un commentaire