[WebMethod(Description = "Update服务提供的方法,将包含修改后数据的DateSet与本地数据库同步更新,成功返回更新的行数,失败返回-1。"), SoapHeader("currentUser")] public int Update(DataSet ds) { if (!ValidateUser(currentUser.UserName, currentUser.UserPass)) { return -1; } else { int res = 0;
using (SqlConnection sqlconn = new SqlConnection("Data Source=.;Initial Catalog=xxxx;User ID=sa;Password=sa")) { sqlconn.Open();