2011年10月7日

ado.net2.0中的缓存使用SqlDependency类

摘要: private void Form1_Load(object sender, EventArgs e) { SqlDependency.Start(connectionString);///启动监听数据表 BindDataGridView()... 阅读全文

posted @ 2011-10-07 17:34 SonyXbox 阅读(274) 评论(0) 推荐(0) 编辑

ado.net2.0的SqlTransaction使用方法

摘要: /////ado.net1.0中使用Transacation(事务)string connectionString = "database=Northwind;pwd=admin;uid=sa;server=DATABASE-VPC\\SQL2005"; using (SqlConnection conn = new SqlConnection(connectionStrin... 阅读全文

posted @ 2011-10-07 14:22 SonyXbox 阅读(2810) 评论(0) 推荐(1) 编辑

导航