Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSet.ReadXML() appends data
Message
From
14/09/2010 11:58:12
 
 
To
14/09/2010 11:54:49
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:
01481135
Views:
30
>>I don't think so, but you could always do DataSet.Clear() first, which gets rid of all existing data.
>
>BTW, I just tried it. Clear() doesn't reset everything. If I do New DataSet(), I am OK with that. When I did Clear(), I found out that this generates an error later on the code as the dataset still contains something from the initial content.


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?

~~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