Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in my researchs to find out methods for transformation the DataTable objects in Recordsets objects, all code found presents poor scalability, provocating crash application(out of memory, commonly).
so, I want experiment wrapper a DataTable object and show a Recordset interface (_recorset).


I need to use existing components, made in. NET, in vb6 grids (old application). By transforming the "DataTable" object in the "Recordset" object, from about 3000 records the system lacks memory. The VB6 application is old, I want to use components .NET without changing the structure of this application, which has hundreds of clients using. As the transformation of "DataTable" in recordset not offer scalability, I'm wanting to create a class that encapsulates a "DataTable" object, and through interface, offers an object "recordset".

Posted
Updated 6-Dec-10 23:30pm
v5

1 solution

I can only guess at what you're really trying to do and what you mean by "horrible performance".

A DataTable object is OK, but if you're processing a large number of records, using a DataReader offers a lot more flexibility and much greater performance than interating over a set of records in a DataSet. And without "wrapping" a DataTable in an outdated structure like a RecordSet object.
 
Share this answer
 
v2
Comments
Dalek Dave 6-Dec-10 6:20am    
Good Call, Dave.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900