I have a table with multiple triggers defined in different schemas. I want to know the enabled status of each trigger. Example, I created a table in s1 and created 2 triggers in s1 and s2 with same names.
Create table s1.sometable (---);
create trigger s1.xyz on s1.sometable as -- trigger body--;
create trigger s2.xyz on s1.sometable as -- trigger body--;
alter table s1.sometable disable trigger s2.xyz ;
using sp_helptrigger does not help here since it does not give schemas and triggers in both schemas have same names. Is there any way to find the status of the trigger given its schema and name?