用于频繁检查是否已将新数据插入数据库的代码 [英] Code for frequently checking if a new data was inserted into a database

查看:69
本文介绍了用于频繁检查是否已将新数据插入数据库的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C#用于频繁检查新数据是否已插入sql server 2012数据库的代码。

C# Code for frequently checking if a new data was inserted into a sql server 2012 database.

推荐答案

为什么你要这样做?

使用 SqlDependancy [ ^ ]让DB告诉你好!



这应该有所帮助: http://blogs.microsoft.co.il/blogs/oshvartz/archive/2008/06/07/query-notification-dependency-sqldependency-class.aspx [ ^ ]
Why on earth would you want to do that?
Use an SqlDependancy[^] and let the DB tell you!

This should help: http://blogs.microsoft.co.il/blogs/oshvartz/archive/2008/06/07/query-notification-dependency-sqldependency-class.aspx[^]


http://msdn.microsoft.com/en-us/library/7a2f3ay4%28v=vs.90%29.aspx [< a href =http://msdn.microsoft.com/en-us/library/7a2f3ay4%28v=vs.90%29.aspxtarget =_ blanktitle =New Window> ^ ]





此链接对我有帮助,希望它也可以帮助别人:)
http://msdn.microsoft.com/en-us/library/7a2f3ay4%28v=vs.90%29.aspx[^]


This link was helpful to me, hope it will assist someone too :)


这篇关于用于频繁检查是否已将新数据插入数据库的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆