摘要:
1 创建一个connectionstring connstr = ConfigurationManager.ConnectionStrings["default"].ConnectionString;SqlConnection sqlconn = new SqlConnection(connstr);2 创建一个command 连接到 connection上SqlCommand cmd = new SqlCommand();cmd.Connection = sqlconn;3 创建一个 transaction 当 connection 打开的时候将事务和connection 阅读全文
posted @ 2011-04-27 23:17
鱼不爱水
阅读(292)
评论(0)
推荐(0)
浙公网安备 33010602011771号