event notifications

  • Hi,

    Can Anybody give an example of using SQL Server 2005 event notifications to keep track of DML operations and how it works actually?

    Any help would be greatly appreciated.

    Regards,

  • There's a few examples in Book Online, but the key point is the Event Notifications is that there are no Events for DML.

    To see all of the event types for which you can create an Event Notification:

    SELECT * FROM sys.event_notification_event_types

    Eddie Wuerch
    MCM: SQL

  • Hi Eddie,

    Thanks for the quick response. That is what i have been checking in books online as well.

    Is there any workaround to trace/audit the DML operations from using sql profiler? is there any specific so that i can use the profiler to achieve this task. Basically collecting profiler is too much of information. Do we have any spefic events as such in sql profiler as such so as to audit the DML operations on a specific database?

    Thanks in Advance.

  • Profiler will generate a lot more data than you need. You could load your trace files into a table as needed and delete what you do not need however that's a lot of work. The problem has been solved more directly with the introduction of Change Tracking and Change Data Capture in SQL Server 2008. Upgrading may not be in the cards for you, but it could be ammunition when asking.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • Thank you very much.

  • do we have the event notifications for sql 2008 apart from CDC(change data capture)?

  • Oracle_91 (7/22/2011)


    do we have the event notifications for sql 2008 apart from CDC(change data capture)?

    Yes. Event Notifications are there...but as Eddie pointed they do not cover DML events.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • Thanks for the confirmation.

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply