Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# replacement for VFP code
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01167122
Message ID:
01174352
Views:
18
Hi Alex/Bonnie,

Ok, so it means that performance wise, still better using SQL select statements to fetch records down the client than using a dataset that has no filter. But, using disconnected datasets in an application and bring the data and travel to other countries or out of town, datasets is the best. (still has draw backs.)

We do a test on our project and imported a 21,000 records to our Clients table. On opening a form which uses datasets to fetch the recods and work locally, it takes less than two minutes to show the form with a P4 2.8 GHZ @ 512 MB and same when closing the form.

So my opinion on using DATASETS W/OUT filtering records when fetching from the outlying DATABASE/DATASOURCE is non-sense. Even using a good business/data access layer, you have to pull all available records from the database to the datasets isn't?

Instead of rolling out our finish application in two weeks time, we decided to change the way how we pull data from the database and works locally, and for adding new transactions why I should I used DATASETS?

I hope that your experienced using Datasets were different compared to me :).

Anyway, since I'm a newbie on datasets, im still exploring the benefits in software app development.

Thanks.

>>Talking of Datasets, if let say I have a PolicyHolder table with 50,000 records, how can I pull all the records and disconnect from my Database from C#/VB.NeT?
>>
>>Can you explain as there might be difference between a Datasets created with Delphi/Interbase and C#/VB/MS SQL.
>>
>>I just need an answer, please.
>>
>>Thanks.

>
>
>Should be no different. You connect to the DB using the proper driver oir provider. Doesn't matter if it's SQL Server or Interbase. Any of the examples and connextion strings you can get online would work. Once you run your query and obtain a DataSet (although 50,000 records is a little to many to bring all at once), then you close the connection and you have a local DataSet to work with. Not as powerful as with VFP, but C#/VB.NET can do a lot with it.
Jojo R. dela Cuesta, B.Sc.
eConsultant, Programmer
Dalplus Technologies
http://www.dalplus.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform