 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Bob Henderson Guest
|
Posted: Mon Feb 02, 2004 8:16 am Post subject: Cannot Open Master Table |
|
|
Delphi 3, Paradox 5, BDE 4.00, Win98SE.
I have a master table which had a corrupted autoincrement index field. I
have repaired this using PDXRBLD.exe and can now access this table.
However, I am now unable to open the 'slave' table which has a field linked
to the previously corrupted index field of the master table.
As it is a small table I can delete it and manually recreate the data but
there must be a better way to solve this problem.
Thank you in advance for your comments or suggestions.
|
|
| Back to top |
|
 |
George Christoforakis Guest
|
Posted: Mon Feb 02, 2004 9:51 am Post subject: Re: Cannot Open Master Table |
|
|
Have you checked if the values in autoinc in the master table are changed
and the details table cannot map to the master?
George Christoforakis.
"Bob Henderson" <ntfobk (AT) NOSPAMknowt (DOT) com> wrote
| Quote: | Delphi 3, Paradox 5, BDE 4.00, Win98SE.
I have a master table which had a corrupted autoincrement index field. I
have repaired this using PDXRBLD.exe and can now access this table.
However, I am now unable to open the 'slave' table which has a field
linked
to the previously corrupted index field of the master table.
As it is a small table I can delete it and manually recreate the data but
there must be a better way to solve this problem.
Thank you in advance for your comments or suggestions.
|
|
|
| Back to top |
|
 |
Bob Henderson Guest
|
Posted: Mon Feb 02, 2004 8:02 pm Post subject: Re: Cannot Open Master Table |
|
|
"George Christoforakis" wrote:
| Quote: | Have you checked if the values in autoinc in the master table are changed
and the details table cannot map to the master?
|
There are only 13 records in the master table. After the repair their value
is the same as originally. The problem is that I cannot open the details
table because Database Desktop cannot open the master table when opening the
details table.
Thanks for your interest.
| Quote: | "Bob Henderson" wrote...
Delphi 3, Paradox 5, BDE 4.00, Win98SE.
I have a master table which had a corrupted autoincrement index field. I
have repaired this using PDXRBLD.exe and can now access this table.
However, I am now unable to open the 'slave' table which has a field
linked
to the previously corrupted index field of the master table.
As it is a small table I can delete it and manually recreate the data
but
there must be a better way to solve this problem.
Thank you in advance for your comments or suggestions.
|
|
|
| Back to top |
|
 |
Rick Carter Guest
|
Posted: Mon Feb 02, 2004 8:20 pm Post subject: Re: Cannot Open Master Table |
|
|
| Quote: | Have you checked if the values in autoinc in the master table are changed
and the details table cannot map to the master?
|
Yep, I'll bet that's what happened. Bob, you've learned this the hard
way: Never use an autoinc field unless you're content with any random
value, and don't care what it is. Never use an autoinc field as a
foreign key in another table. Make your key field an integer field, and
write your own incrementing routine.
Rick Carter
[email]carterrk (AT) despammed (DOT) com[/email]
Chair, Paradox/Delphi SIG, Cincinnati PC Users Group
--- posted by geoForum on http://delphi.newswhat.com
|
|
| Back to top |
|
 |
Bob Henderson Guest
|
Posted: Mon Feb 02, 2004 9:05 pm Post subject: Re: Cannot Open Master Table |
|
|
"Rick Carter" wrote...
| Quote: | Have you checked if the values in autoinc in the master table are changed
and the details table cannot map to the master?
Yep, I'll bet that's what happened. Bob, you've learned this the hard
way: Never use an autoinc field unless you're content with any random
value, and don't care what it is. Never use an autoinc field as a
foreign key in another table. Make your key field an integer field, and
write your own incrementing routine.
|
Thank you. Luckily this is a project under development and there are only a
small number of records. It won't be a problem to change the detail table as
you recommend.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|