摘要: 1、执行存储过程 SqlConnection conn = new SqlConnection();//建立连接 conn.ConnectionString = Config.ConnStr;//连接字符串 conn.Open();//打开连接 SqlCommand cmd = new SqlCommand();//创建命令 cmd.Connection = conn;//指定连接 cmd.CommandText = "PRO_AAA";//存储过程名称 cmd.CommandType = CommandType.StoredProcedur... 阅读全文
posted @ 2011-10-27 12:30 柳城之城 阅读(4081) 评论(1) 推荐(0) 编辑