Click here to Skip to main content
15,613,716 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Is there any way where i can configure my SQL, so that the Query Notifications using SQLDependency class will fire only for INSERT opertion on a table? In other words whenever i INSERT data into a table i should get a notification. I dont want the notification on UPDATE. Please do the needful

Use SqlNotificationInfo[^] enumeration to get additional information about notification event.

For further information, please see:
Monitoring data change using SqlDependency and C#[^]
Detecting Changes with SqlDependency[^]
Share this answer
In an ASP.NET app?? Why?

A web application cannot push notifications to the client so there's little reason to use it.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900