QUSTION
SqlConnection myConn=new SqlConnection("Data Source=;User id=sa;pwd=thwilly;DataBase=northwind");myConn.Open();
SqlDataAdapter myAdapter=new SqlDataAdapter("select CustomerID,CompanyName from Customers",myConn);
SqlCommandBuilder myCB=new SqlCommandBuilder(myAdapter);
DataSet myDataset=new DataSet();
myAdapter.Fill(myDataset,"Customers");
Console.WriteLine("name before count:{0}",myDataset.Tables["Customers"].Rows.Count);
DataRow myRow=myDataset.Tables["Customers"].NewRow();
myRow["CustomerID"]="CZWLOVE";
myRow["CompanyName"]="Tien-Hu Knitte Limited";
myDataset.Tables["Customers"].Rows.Add(myRow);
Console.WriteLine("name after count:{0}",myDataset.Tables["Customers"].Rows.Count);
myAdapter.Update(myDataset,"Customers");
myConn.Close();
Console.WriteLine("Program finished,press Enter/Return to contiute...");
Console.ReadLine();
上面的代碼執行後出現下圖出錯資訊,什麽原因????