为什么我更新不了数据库呢???请高手指点啦。。。
为什么我更新不了数据库呢???请高手指点啦。。。
SqlDataAdapter myAdapter=new SqlDataAdapter("select * from touch",myConnection);
SqlCommandBuilder myBuilder=new SqlCommandBuilder(myAdapter);
DataSet ds=new DataSet();
myAdapter.Fill(ds,"touch");
ds.Tables["touch"].Rows[1]["name"]=name;
myAdapter.Update(ds,"touch");