摘要:
SqlDependency提供了:對監(jiān)測的數(shù)據(jù)庫發(fā)生變化通知前臺程序的功能。具體使用如下: 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)

浙公網(wǎng)安備 33010602011771號