روی یک
intres = command.ExecuteNonQuery();
چند بار ExecuteNonQuery کنید و نتایج با if چک کنید و در صورت موفقیط
transaction.Commit();
کنید