I have a query that returns different results (3508 rows for snapshot,
6288 for dynaset) and that is the only thing I change to get the
different results. When I try to make a table from the query, it
makes 3508 rows. I also know that there are 6288 unique rows in the
results. Is there some configuration choice that is causing the
snapshot version to return the wrong row count?
Thanks for your help on this one. If it wasn't that the Dynaset takes
so long to scroll through the records when generating text output
(half an hour vs a couple of seconds for the snapshot) I wouldn't mind
using the dynaset.
So I guess I'm hoping for either a solution to the wrong snapshot
count or a way to improve the speed of the dynaset. bi***@gci.net 3 3622
Strange one.
First thing to do will be a compact and repair (Tools menu.) It is just
possible that the difference is due to an bad index, and a repair could fix
that.
If that doesn't solve the problem, can you confirm that you have SR2 for
Access 97? If not, grab the SP from: http://support.microsoft.com/kb/151261
Next, search your entire hard disk for msjet35.dll. There should be only one
copy, probably in windows\system32. Sometimes you could end up with
multiples, which meant the patch you thought you were running was acually
different.
Once you pin it down to one, see if you need an update: http://support.microsoft.com/kb/172733
If those things don't apply, is this running on a dual-processor machine? http://support.microsoft.com/kb/178650
If none of that helps, it is time to start examining the SQL statement, to
see if this is a known JET bug. There's lots of them, so it can take some
time to track down, particularly if the SQL statement is complex, or based
on other lower-level queries, subqueries, disparate joins, literals in
joins, etc. Post the SQL statement with info about the fields used in joins,
criteria, and grouping.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Bill Hutchison" <bi***@gci.netwrote in message
news:45**************@news.gci.net...
>I have a query that returns different results (3508 rows for snapshot,
6288 for dynaset) and that is the only thing I change to get the
different results. When I try to make a table from the query, it
makes 3508 rows. I also know that there are 6288 unique rows in the
results. Is there some configuration choice that is causing the
snapshot version to return the wrong row count?
Thanks for your help on this one. If it wasn't that the Dynaset takes
so long to scroll through the records when generating text output
(half an hour vs a couple of seconds for the snapshot) I wouldn't mind
using the dynaset.
So I guess I'm hoping for either a solution to the wrong snapshot
count or a way to improve the speed of the dynaset.
bi***@gci.net
Thanks to Allen Browne for his advice so far. It turns out I already
had the Jet SP3. Here is the query which results in different row
counts. It is based on a query of the JCN table plus two tables
generated from crosstab queries of scheduled start and scheduled
finish dates, the tables being a limited set of the project activities
from the crosstab queries of an activities table. The joins are on
the JCN columns, sorted on the first three columns of the [JCN SCHED
QUERY].
SELECT [JCN SCHED QUERY].LOC, [JCN SCHED QUERY].FAC, [JCN SCHED
QUERY].JCN, [JCN SCHED QUERY].ST, [JCN SCHED QUERY].WORK_LOC_DESC,
LS.S00, LS.S08, LS.S10, LS.S21, LS.S44, LS.S80, LS.SComp, LS.SClose,
LF.F00, LF.F08, LF.F10, LF.F21, LF.F44, LF.F80, LF.FComp, LF.FClose
FROM ([JCN SCHED QUERY] INNER JOIN LF ON [JCN SCHED QUERY].JCN =
LF.JCN) INNER JOIN LS ON LF.JCN = LS.JCN
ORDER BY [JCN SCHED QUERY].LOC, [JCN SCHED QUERY].FAC, [JCN SCHED
QUERY].JCN
WITH OWNERACCESS OPTION;
On Wed, 14 Mar 2007 14:47:36 GMT, bi***@gci.net (Bill Hutchison)
wrote:
>I have a query that returns different results (3508 rows for snapshot, 6288 for dynaset) and that is the only thing I change to get the different results. When I try to make a table from the query, it makes 3508 rows. I also know that there are 6288 unique rows in the results. Is there some configuration choice that is causing the snapshot version to return the wrong row count?
Thanks for your help on this one. If it wasn't that the Dynaset takes so long to scroll through the records when generating text output (half an hour vs a couple of seconds for the snapshot) I wouldn't mind using the dynaset.
So I guess I'm hoping for either a solution to the wrong snapshot count or a way to improve the speed of the dynaset.
bi***@gci.net
Okay, Bill, I take it you are certain that you have SP2 for Office 97, and
that you have only one copy of msjet35.dll on your hard disk, and it is not
a dual core processor, and that the compact/repair did not solve the
problem.
The query statement looks innocuous enough. But it might depend on the
queries underneath it, so you will need to drill down further and look at
those as well. Particularly, any criteria on calculated fields? If so, they
may need to be explicitly typecast: http://allenbrowne.com/ser-45.html
Likewise, if there are any parameters, explicitly declare them so they are
typed (Parameters on Query menu, in query design view), but do not declare
the parameters applied on fields of type Text, since that could trigger this
bug: http://allenbrowne.com/bug-13.html
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Bill Hutchison" <bi***@gci.netwrote in message
news:46***************@news.gci.net...
Thanks to Allen Browne for his advice so far. It turns out I already
had the Jet SP3. Here is the query which results in different row
counts. It is based on a query of the JCN table plus two tables
generated from crosstab queries of scheduled start and scheduled
finish dates, the tables being a limited set of the project activities
from the crosstab queries of an activities table. The joins are on
the JCN columns, sorted on the first three columns of the
[JCN SCHED QUERY].
SELECT [JCN SCHED QUERY].LOC,
[JCN SCHED QUERY].FAC,
[JCN SCHED QUERY].JCN,
JCN SCHED QUERY].ST,
[JCN SCHED QUERY].WORK_LOC_DESC,
LS.S00, LS.S08, LS.S10, LS.S21, LS.S44,
LS.S80, LS.SComp, LS.SClose, LF.F00,
LF.F08, LF.F10, LF.F21, LF.F44,
LF.F80, LF.FComp, LF.FClose
FROM ([JCN SCHED QUERY] INNER JOIN LF
ON [JCN SCHED QUERY].JCN = LF.JCN)
INNER JOIN LS ON LF.JCN = LS.JCN
ORDER BY [JCN SCHED QUERY].LOC,
[JCN SCHED QUERY].FAC,
[JCN SCHED QUERY].JCN
WITH OWNERACCESS OPTION;
>
On Wed, 14 Mar 2007 14:47:36 GMT, bi***@gci.net (Bill Hutchison)
wrote:
>>I have a query that returns different results (3508 rows for snapshot, 6288 for dynaset) and that is the only thing I change to get the different results. When I try to make a table from the query, it makes 3508 rows. I also know that there are 6288 unique rows in the results. Is there some configuration choice that is causing the snapshot version to return the wrong row count?
Thanks for your help on this one. If it wasn't that the Dynaset takes so long to scroll through the records when generating text output (half an hour vs a couple of seconds for the snapshot) I wouldn't mind using the dynaset.
So I guess I'm hoping for either a solution to the wrong snapshot count or a way to improve the speed of the dynaset.
bi***@gci.net
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jegger |
last post by:
Hello!
We have following situation;
network with 100 users, aplication developed in Access, user DB
deployed on SQL Server.
Is it better to create query inside aplication (with code) and then...
|
by: sacha.prins |
last post by:
Hi,
I read a lot about DB2 INSERT performance here. I have a nice story as
well.
The thing is, I work on 2 installations of DB2 (on completely different
locations) which run on different (but...
|
by: Marizel |
last post by:
I'm not sure there's an easy solution to this, but thought I'd ask. I
often find myself with a query which I'd like to reuse, but with a
different datasource. These datasources generally have...
|
by: Daven Thrice |
last post by:
If I have a fairly big Access MDB, that is relational, and has, say, 100
objects (forms, reports, modules, etc.), what is the path to get this
database "online".
Is there a way to put the tables...
|
by: MLH |
last post by:
I have a table I can open as table type
recordset or a dynaset. Searching for
a particular value in the table's main
keyfield, which would be faster and
less strain on the application......
|
by: Bob Alston |
last post by:
Anyone know a way to make all access to a linked table, in another
Access MDB, read only?
I really don't want all the hassle of implementing full access security.
I can't do this at the server...
|
by: MLH |
last post by:
I feel pretty lucky on my last SQL question.
I think I'll try one more...
If there is a table (tblCorrespondence) with a field in it named
and I am extracting a dynaset of records having an
...
|
by: royaltiger |
last post by:
I am trying to copy the inventory database in Building Access Applications
by John L Viescas but when i try to run the database i get an error in the
orders form when i click on the allocate...
|
by: ThePhenix |
last post by:
Hi everybody,
I have recently been doing a conversion for my boss for a access 2000 database (both front and backend) to a MSSQL backend.
I finished the conversion today (as quite a lot of the...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |