Order of records in a table? Db corrupt?
- From: "Jacob Havkrog" <a@xxx>
- Date: Thu, 26 Oct 2006 16:10:04 +0200
Hi.
I've got an Access table with autonumber primary key. I connect to the table
from my Delphi 5 application using TAdoConnection and TAdoTable.
When I do
MyTable.First;
while not MyTable.Eof do begin
...
MyTable.Next
end;
I expect to read the record ordered by the primary key. This has also been
the case for a long time.
But suddenly with one table, the records are not sorted properly. I have
tried to repair the database, but it doesn't help.
Am I wrong i expecting, that reading records like above, is equivalent to
reading them like this:
SELECT * FROM mytable ORDER BY myprimarykey
Is the database corrupt?
Thanks for any help!
Jacob
.
- Follow-Ups:
- Re: Order of records in a table? Db corrupt?
- From: Maurice Telkamp
- Re: Order of records in a table? Db corrupt?
- Prev by Date: Re: TADOConnection and Oracle
- Next by Date: Re: Order of records in a table? Db corrupt?
- Previous by thread: TADOConnection and Oracle
- Next by thread: Re: Order of records in a table? Db corrupt?
- Index(es):
Relevant Pages
|