简体   繁体   中英

VB.net SQL Checking

I've been looking for a couple weeks now on what the best way would be to try and come up with a "push-notification" from SQL to VB.net so i don't have to continuesly run Timers and multiple of them on my forms...

Was curious on what you guys would do / have tried and is working for you?

Have you considered SqlDependency ( http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldependency.aspx )? Sounds like exactly what you're looking for.

We haven't implemented this in production code. I have a Lazy-ish object that reloads if the value is older than a few minutes old.

SignalR is an emerging technology for polling and long-running transactions (for notification, as you are describing it).
This SO question had some good references: How to use SignalR in a webfarm, using Sql server as the backplane

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM