Skip to content

Why 'insert' trigger three TableChangedEvent? #63

Description

@dcuti8

I use the example code, but when i insert data in SSMS, the TableChangedEvent trigger three times in this order --- NotificationType.None, NotificationTypes.Update, NotificationTypes.Insert.

I want to monitor update, insert, delete event, when I delete and update data in SSMS it works perfectly. Just the insert trigger three times...

`var listener = new SqlDependencyEx(connectionString, "DatabaseName", "TableName");

listener.TableChanged += (o, e) =>
{
//logic code
};

listener.Start();`

Thanks for any reply!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions