Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete multiple records at once
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Delete multiple records at once
Versions des environnements
Environment:
C# 2.0
OS:
Vista
Database:
VistaDB
Divers
Thread ID:
01280361
Message ID:
01280361
Vues:
65
Is there a way to delete records from a table without reading through the table and checking each record and then calling dr.delete()?

I'm using datasets,tableadapters and bindingsources in an app where I give the user a combo box populated with unique dates which I have gotten from a transaction table. I want the user to be able to pick a date and then delete all records from the transaction table that have a matching date.

So far I only see that I can loop through the data and test each record and then delete it using the datarow delete(). Seems very inefficient.

Anyone have a better way?

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform