Let VB.NET react on a SQL trigger


I wonder if it is possible to let vb.net react on an insert/delete/modify statement in SQL.
This is my situation: I have a planning tool that visualises the planning of an employee. It is possible that several uses use the planning, so I would like to display the changes one user makes on the planning of another user. This means that if user A plans something for employee X, this is immediately visible in the planning form of user B.

To display the planning we use one table, so what I would like is some kind of 'Listener' in VB.NET that reacts on an insert/modify/delete statement in that table, so the appropriate action can be taken.

I know it is possible to search every x seconds for a change in the table (using a 'last modified' timestamp), but that means a lot of queries in the SQL database (= PULL method). I would like a 'PUSH' method.

Kind regards,
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
you cannot subscribe to triggers but you could use SQL Server Notifications. See http://www.sqljunkies.ddj.com/Article/38D95C18-D0AB-4B00-9CF5-80940309E68C.scuk

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Eddie ShipmanAll-around developerCommented:
You can also use MSMQ messages.


We used to use this with Delphi to be notified of changes in a database for our controls to refresh themselves.
ACAEAuthor Commented:
Hi experts,

Thx for your help. I will investigate the notifications, and if that doesn't work, I will chek the message queues.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.