Re: ADO Behaving VERY badly...
- From: "William \(Bill\) Vaughn" <billvaRemoveThis@xxxxxxxxxx>
- Date: Sat, 2 Jul 2005 10:00:23 -0700
ADO classic and ADO.NET are (as you well know) very different in their
approach to fetching and persisting client-side data. However, if code works
on one system and not another I look for differences in the installed code.
In a .NET application this is pretty straightforward. That's not the case
with MDAC. It's not hard to disturb the MDAC stack as we've seen in
countless cases. I would run Component Checker (www.microsoft.com/data) to
verify that the stack is the same on both the working and slower systems.
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
"cvelazquez62" <chris#boerne,biz> wrote in message
news:B3B1B5B3-499D-4799-8215-CC590FF6385E@xxxxxxxxxxxxxxxx
> I'm seeing weird 2-second pauses when using ADO (MDAC 2.8) with MSDE
> 2000A.
> This happens on some machines but not others. I wrote small test programs
> in
> VB6 and VBScript to retrieve ADO Recordsets for a number of individual SQL
> SELECT statements. A few statements will execute, then there will be
> about a
> two second pause, and a few more statements will execute, then another
> pause,
> and so on. It's not dependent on the SQL statement being issued, it will
> even pause on an SQL request for a single record in a table containing
> only
> one record, requested with the WHERE clause as primary key!
>
> I don't think the database is the problem. If I write the same program in
> C# using DataSets, the SQL statements execute rapidly from start to finish
> with no pauses. This database is pretty tight, normalized, and indexed
> nicely, and only has about 40 tables, and the test database has an MDF
> file
> that's only 13 MB. The WHERE clauses of my statements are all on indexed
> columns.
>
> It doesn't seem to depend on the computer's speed either. I see the
> problem
> on my wife's P4 1.8 GHz w/256MB, and also on my client's 3.4 GHz P4 w/1GB
> RAM. My pokey 2.0 GHz P4 laptop w/512 and my test box 2.0 GHz w/1GB seem
> to
> work fine. All systems are running XP SP2 with patches up to date.
>
> This database is being used as the back end for both VB6 and C# desktop
> applications, so I need to get this working using ADO "Classic". On
> machines
> where this problem manifests itself, the VB6 app is so slow that it's
> unusable. I can't do a total rewrite in .NET right now (though I plan to
> in
> the future).
>
> If anyone has any clues as to WTF is going on here, I sure would
> appreciate
> it!
>
> Thanks,
> Chris
.
- Follow-Ups:
- Re: ADO Behaving VERY badly...
- From: cvelazquez62
- Re: ADO Behaving VERY badly...
- References:
- ADO Behaving VERY badly...
- From: cvelazquez62
- ADO Behaving VERY badly...
- Prev by Date: ADO Behaving VERY badly...
- Next by Date: Re: ADO Behaving VERY badly...
- Previous by thread: ADO Behaving VERY badly...
- Next by thread: Re: ADO Behaving VERY badly...
- Index(es):
Relevant Pages
|