• Given the answer options, I agree that the sp_foreachtable option was the only correct one.

    I agree with that completely, but it is not quite precise because triggers created on VIEW objects will remain enabled as the procedure loops only TABLE objects.

    But that does not make this the recommended method to disable all triggers in a database. As can be read in the documentation that is referenced in the explanation, a better way would be

    DISABLE TRIGGER ALL ON DATABASE;

    Not true. The command will ONLY disable all triggers scoped to DATABASE while TABLE and VIEW triggers will remain enabled.

    Best regards,

    Hrvoje Piasevoli

    Hrvoje Piasevoli