IT SOLUTIONS
Your TECHNOLOGY partner! 
-Collapse +Expand
Paradox
Search Paradox Group:

Advanced
-Collapse +Expand Paradox Group Home
-Collapse +Expand Message Board
-Collapse +Expand Paradox KB
-Collapse +Expand Paradox To/From
To/FromCODEGuides
-Collapse +Expand Paradox Study Test
PRESTWOODCERTIFIED
-Collapse +Expand Paradox Store
PRESTWOODSTORE
-Collapse +Expand Members Only

Prestwood eMagazine

May Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyCorel Paradox / ObjectPAL Coding BoardParadox Tables Topic     Print This   

Paradox 3 table add

Paradox 3 table add in Paradox Tables topic (part of our Corel Paradox / ObjectPAL Coding group).

Quick Search: Paradox   Paradox 3   Paradox 3 table  

jrshedden

Hi All,

I hit a strange one, the saga of the three table add.

All files are Paradox 7 with primary keys, 16 block size, 555 byte record size, and each verify as OK. They are:

US (338829 records)

EU (179069 records)

JP (81668 records)

The addition often results in a corrupt table based on the sequence of additon.

US+EU+JP = No Good repeatable on multiple machines and OS's, Paradox 10 and 11 and C++ builder custom code. It is apparently the BDE.

US+EU = Good

US+JP = Good

US+(EU+JP) = Good and this was my solution

Paradox is running single user, local database at the time. Has anyone seen this? I'm concerned as I will be concatinating databases from other countries very soon and I'm a little nervous. The BDE settings have Local Share True and all the common tweaks for memory etc.

Thanks in Advance!

Regards,

Jim Shedden

 Posted 35 months ago (Thread Starter)
Comment Quote
Location=Kinnelon, NJ UNK,  Joined=39 months ago   MB Posts=3  
More... -Collapse +Expand
jrshedden
Kinnelon, NJ UNK
Rank: Cadet 3rd Year
Email A E NJ
Approved member.
Member subscribes to this thread with a verified email.

Post ID #14192, 2 replies
Thread Started 6/24/2010 9:10:26 AM
View Counter=1914
Last Reply Posted 6/28/2010 6:10:58 PM)

Bryan Valencia

What methodology are you using to add the records?  a QBE query?  Code in a script?

If it were a Key collision you'd end up with an error message, not a corrupt table, so it's not that.  It might be a storage issue, maybe BDE settings would help.  I wonder if you should close and reopen the tables between adds, to clean up temp data and force data writes.

As a rule, I try to use SQL to do this kind of thing rather than the raw table adds. 

Yahoo ID: Commander_Bombast

Opportunity is missed by most because it is dressed in overalls and looks like work.

--THOMAS ALVA EDISON


 Posted 35 months ago
Comment Quote
Location=Home office in Manteca, CA,  Joined=6 years ago   MB Posts=20   KB Posts=22  
More... -Collapse +Expand
Moderator
Bryan Valencia
Prestwood IT,
Home office in Manteca, CA
Rank: Commander
Email A E , ,
Approved member.
Member subscribes to this thread with a verified email.
About Bryan Valencia

Bryan Valencia is the author of millions of lines of code and writes for PrestwoodBoards and Visual Studio Journey on-line magazines.

Web Presence
LinkedIn, Bryan On LinkedIn (Visit Me)
Website, Software Services (http://209software.com/)
Website, Visual Studio Journey (http://vstudiojourney.blogspot.com/)

Post ID #14195 (Level 1.1)  Reply to 14192
Thread Started 6/26/2010 2:42:17 PM
Most Recent Post

jrshedden

Hi Bryan,

Thanks for the reply. I've used Paradox Table Add from the menu in Paradox 10 and 11. I've also used two TTables and a TBatchMove component in C++ (which I've done successfully literally hundreds of times.). Here is what that code looks like:

 tblCa->TableName=dataModelNames->Strings+".db";
 tblU->TableName=uname;
 tblCa->Open();
 tblU->Open();
 tbmU->Execute();
 modelUpdated=true;
 tblCa->Close();
 tblU->Close();
 tblU->DeleteTable();

The TBatchMove mode is set to 'append' of course. I do get key violations using this if they exist. Both computers that I've run this on have huge amounts of both ram and disk storage. The BDE is set as follows:

Local Share True
Low Memory Usage Limit 32
Maxbufsize 16384
Maxfilehandles 100
Memsize 42
Minbufsize 4096
MTS Pooling False
Shared Memory Location is blank
Shared Memory Size is 14080
SQLQryMode is blank
Sysflags is 0
Version is 4

The storage, the methodology and the BDE settings are the same when I perform the table addition that does work. It is only the sequence of the addition that affects the outcome.

The table becomming corrupt has 108 fields. What SQL would you suggest? Could I use

Insert into table1 select * from table2

It wouldn't be much fun to map all the columns in the statement. Would I still be aware of key violations?

Regards,

Jim

 Posted 35 months ago (Thread Starter)
Comment Quote
Location=Kinnelon, NJ UNK,  Joined=39 months ago   MB Posts=3  
More... -Collapse +Expand
jrshedden
Kinnelon, NJ UNK
Rank: Cadet 3rd Year
Email A E NJ
Approved member.
Member subscribes to this thread with a verified email.

Post ID #14196 (Level 2.1)  Reply to 14195 and Parent is 14192
Thread Started 6/28/2010 5:48:21 PM

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post:

Enter your name and security key.

Your Name:
Today's security key = P224A
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #14192 Counter
1914
Since 6/24/2010
-
  Load Time=less than 1 second.
 
Print This
-
 
Have a question? Need our services? Contact us now.
--Mike Prestwood

Call: 916-726-5675

email: info@prestwood.com


354 People Online Now!!  
Online Now: Sign In to see who's online now!  Not a member? Join now. It's free!
Show More...


©1995-2013 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech