摘要:
SqlDependency提供了:对监测的数据库发生变化通知前台程序的功能。具体使用如下: public Form1() { InitializeComponent(); SqlDependency.Start(conStr); NewMethod(); } string conStr = "data source=.;initial catalog=AssetsManageDB;uid=sa;pwd=****"; private void NewMethod() { using (SqlConnection con = new SqlConnection(conStr)) 阅读全文
posted @ 2011-04-01 17:54
Xingsoft
阅读(395)
评论(0)
推荐(0)

浙公网安备 33010602011771号