Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSet.ReadXML() appends data
Message
From
14/09/2010 12:07:31
 
 
To
14/09/2010 12:00:34
General information
Forum:
ASP.NET
Category:
Databases
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01481109
Message ID:
01481138
Views:
32
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform