• Prashant Pandey (12/12/2007)


    Yelena Varshal (12/12/2007)


    I was surprised at the logic:

    "....This link also contain CLR Triggers but they can also be a DDL trigger that is why they cannot be count under the pur DML triggers category..."

    If CLR Triggers can be something else than DML Triggers, it does not mean it is not the valid type for DML Triggers. It just means it is the valid type for other types of triggers too. The question was "How many types for DML Triggers" and it is 3. This is similar of how we have a "priority one" for so many different things and the fact that we have issues of "priority one" , tasks of "priority one", goals of "priority one" etc does not mean that "priority one" is not a valid type for issues for example because it is a valid type for many other categories.

    HI,

    ur right... i think i am wrong, But if u see that question is "How many Types of DMLTriggers" so i think if u ask about all versions of sql then commonly there are two. AFTER and INSTEAD and FOR is not a seprate it comes under AFTER,

    CLR Triggers are implemented in SQL 2005. they are not in 7.0 and 2000 and i think AFTER and INSTEAD OF both are there in all versions.

    but if u consider the latest which always prefered .. then question needs some modification and it should be like below.

    How many Types of DML Triggers in the SQL2005??

    and answer will be AFTER, INSTEAD OF and CLR Triggers.

    What you think???

    I think INSTEAD OF trigger started with SQL 2000. That would make none of your choices valid.

    I don't think your logic here is correct. If your original question intended to encompass versions 7.0, 2000, and 2005 without explicitly listing them, what about earlier versions like 6.x or 4.x?