Forum Moderators: open
i am having a hard time believing that he is properly creating this app. should he be using disconnected datasets? is there a proper way to (hopefully an online tutorial) that shows how to do this? thanks for your help.
-Matt
Disconnected recordsets can be useful because they give you all the functionality - sort, query, update etc that arrays dont have - saves you writing a custom container class if you are already familiar with ADO.
One thing I would question is the lost update problem, transaction integrity etc. as disconnected recordsets may corrupt the master data if you have several concurrent users.
The disconnected dataset should be ok if it is a client app. Makes me wonder how big the data structure is. One thing is that datareaders can boost performance if you are not manipulating the data.
a few points to the statements you have both made:
-there will be no concurrent users to the app. the app is geared towards a single person keeping track of records.
-new records will be added/updated frequently
the thing that made be bring up this question in the first place was because the app was using 11mb of RAM upon opening it, and then jumped to 23mb after retrieving about 100 records (about 15 fields per record, with XML) using the disconnected dataset. does that sound right?
-Matt
To wit:
Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) is a free, redistributable version of SQL Server 2000 that can now be downloaded from the SQL Server website. The MSDE 2000 download provides users with the right to install and use MSDE with your applications or development projects. You must register for the right to redistribute MSDE with your applications
So, either get your users to download themselves, or
register to include it with your stuff.
MSDE is also a part of MS OFFICE, which your users
may already have.
+++