|
-
ADO GetString
I have noticed that if you are trying to format a large recordset in VB or
VB script (say around 300 records), the GetString function can be substantially
faster than looping through each record and formatting it that way. Are
there any downsides to using the GetString function performance or scalability
wise?
Mike Kenzie
-
Re: ADO GetString
I discuss this at some length in the new book (mentioned eariler). GetRows
or GetString returns a variant array or a "pseudo" delimited string. Ok,
now that you have the array or string, now what? You lose almost all (or
all) of the DDL information but that might not be a problem--you still have
the original Recordset. You do have the data, but to display it you have
to figure out how to do this yourself. The Clip property can accept a delimited
string, but the MSHFlexGrid.Recordset is faster and takes the ADO Recordset
object directly. If you're considering passing the data from tier-to-tier,
a DS is not a bad choice. It's ANSI (as opposed to Unicode), it's lightweight
(no DDL), but it assumes the target knows what to do with it. There are lots
of other tradeoffs discussed in the book...
hth
bv
"Mike Kenzie" <mkenzie@solutechinc.com> wrote:
>
>I have noticed that if you are trying to format a large recordset in VB
or
>VB script (say around 300 records), the GetString function can be substantially
>faster than looping through each record and formatting it that way. Are
>there any downsides to using the GetString function performance or scalability
>wise?
>
>Mike Kenzie
Similar Threads
-
By Matt Brook in forum Database
Replies: 0
Last Post: 02-06-2002, 04:59 PM
-
By Filipo Novo Mór in forum VB Classic
Replies: 3
Last Post: 06-19-2001, 08:40 AM
-
By Tord Lindberg in forum VB Classic
Replies: 0
Last Post: 03-26-2001, 03:08 PM
-
By Jeff Pipes Jeff in forum VB Classic
Replies: 2
Last Post: 10-10-2000, 12:35 PM
-
By Neil Whitlow in forum Database
Replies: 3
Last Post: 08-20-2000, 11:38 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks