Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB Databases
|
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 8th, 2005, 07:19 AM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Andypat
Default VB Collection object Vs Disconnected Recordset

I have one confussion regarding the Usage of Collection and Disconnected RecordSet, Can anyone help me to explain me the Exact differene in Usage of Collection Vs Disconnected RecordSet. Currently i m using Collection to store data and retrive it for my Three tyre application but i m feeling very slow performance using it, can anyone give me exact idea of usage of Collection or Disconnected Recordset with regard to Memory Usage and Speed Performance for Database based application.



Anand Patel
Xtreme Infotech Solutions
www.xtremeinfos.com
 
Old February 15th, 2005, 06:57 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

A disconnected recordset is an object with properties and methods explicitly tailored to handling data. It should be quite speedy once it has its data.

Using a Collection, you sort of have to redesign the wheel, so to speak. Memory usage probably doesn't matter much, that goes on kind of 'under the hood.' You don't need to know much about how an engine runs to drive a car.
I would expect using a collection to be more error-prone, take maybe 5 times as long to write the code, and I would expect it to be slow.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dcount with local disconnected recordset DreamEagl Access VBA 7 March 10th, 2006 01:44 PM
Report from disconnected recordset DreamEagl Access VBA 4 January 9th, 2006 04:26 PM
The object invoked has disconnected from its clien Ciarano Beginning VB 6 2 March 12th, 2004 11:38 AM
Object is not a collection?! Ashleek007 Classic ASP Basics 8 January 26th, 2004 08:07 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.