开发者

sql c# check for database updates without while/for loops?

开发者 https://www.devze.com 2023-03-05 04:14 出处:网络
I have a simple C# program that checks the database for updates every minute via开发者_开发问答 a timed loop. It works fine, but I think its not efficient. Is there a better way to do this?

I have a simple C# program that checks the database for updates every minute via开发者_开发问答 a timed loop. It works fine, but I think its not efficient. Is there a better way to do this?

Thank


Have you looked at SqlDependency?

0

精彩评论

暂无评论...
验证码 换一张
取 消