Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataSet.ReadXML() appends data
Message
De
14/09/2010 12:07:31
 
 
À
14/09/2010 12:00:34
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01481109
Message ID:
01481138
Vues:
31
>>There shouldn't be any data at all ... the schema will be retained (same DataColumns), but all DataRows in the DataRowCollection of each DataTable get removed.
>>
>>What caused an error?
>
>In my case, this is a brand new structure that I am passing. So, that explains.


Well, there are also .Clear() methods for the collections (DataTableCollection and DataColumnsCollection, for example) You can do a DataSet.Tables.Clear() and get rid of all the Tables in the DataSet. Alternatively, if you have the same Table structure, but different columns in the table schema, there is also a DataTable.Columns.Clear() method, that should remove the schema for a given DataTable.

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform