在vs.net 2003中数据适配器事务可以这样写
System.Data.SqlClient.SqlTransaction mytrans;
this.sqlCnPosprice.Open();
mytrans=this.sqlCnPosprice.BeginTransaction();
this.sqlInsertCommand1.Transaction=mytrans;
this.sqlInsertCommand2.Transaction=mytrans;
try
{
this.sqlDataAdapter1.Update(ds.Tables["SaleBillVouch"]);
this.sqlDataAdapter2.Update(ds.Tables["SaleBillVouchs"]);
mytrans.Commit();


}
catch(Exception e)
{
mytrans.Rollback();
return false;
}
finally 
{
this.sqlCnPosprice.Close();

}
在2005中适配器自动运用模式化dataset,怎么也找不到InsertCommand对象
请教在2005中用DataAdapter更新两张表要怎么处理