用sql事件检测器检测一下,看是否有相应的Delete语句产生
更新的用法:
SqlDataAdapter da = new SqlDataAdapter (strCommand, connection) ;
//da.SelectCommand.Transaction=trans;
da.Fill(ds);
modify
SqlCommandBuilder cb=new SqlCommandBuilder(da);
da.MissingSchemaAction=MissingSchemaAction.AddWithKey;

try
{
da.Update(ds.Tables[0]);
}
catch(SqlException e)
{
throw e;
}