Solved

Paradox Problem

Posted on 2000-05-18
13
361 Views
Last Modified: 2010-04-04
Hi guys,

I'm using a paradox database with multiple users over a network (bad idea I know, wasn't my idea but I'm stuck with it).

Apparently a user is getting a message that says "too many locked records" what does this mean? whys it happening?and it there anyway of stopping it????

I must say that paradox is by far the worst database ever!!!!

Please help.

thanks
woody.
0
Comment
Question by:WoodyJ3
13 Comments
 
LVL 9

Expert Comment

by:ITugay
ID: 2820609
listening....
0
 

Expert Comment

by:Portal
ID: 2820774
The most probable cause of this (I have found) is that you haven't set the sessions private directory to somewhere on the local computer.

For example
session.privatedir := 'c:\temp';

That will ease the locked record problem. You can also test out your app with localShare = False (BDE Setting).

If these dont solve your problem then it may be caused by a genuine locking problem. Are you applying read locks to records? Are you freeing TTables without closing them?
0
 
LVL 2

Expert Comment

by:Roza
ID: 2820783
listening...
0
 

Author Comment

by:WoodyJ3
ID: 2820820
The steps I use are

run two queries.
append record to a table.
close both queries.
Open both queries.  (refresh unreliable)

If you do this enough times you get the error.

This error only seems to happen when I connect to a database that is a share on another computer.

I'll try out that local share stuff.

Thanks
Woody.
0
 

Author Comment

by:WoodyJ3
ID: 2820864
nah, tried that. Didn't seem to make any difference.  I just wish I had time to convert the lot to a decent database.

Woody.
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 2820906
hi WoodyJ3,

i would not say that paradox is worst.

two tips

don't use cachedUpdates, if you are modifying a large amount of records in one step.

open the table exclusive.

you cannot lock more than 512 records at one time (or was it 1024?)

meikl
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Accepted Solution

by:
Portal earned 15 total points
ID: 2820934
Change the "appending records to a table" bit to an SQL Statement if possible. Otherwise make sure the Table is not open when a Query is open.
 According to Borland you can also get lock problems when you perform query operations while a TTable is open (not sure why but its in a Delphi TI).
0
 

Expert Comment

by:isaka
ID: 2821207

Hi Woody,

I think that is happening because your tables and net dir file are at the same folder.
The solution I propose is make a sub-folder "data" and put all your tables there, and another sub-folder "netdir" and put the netdir file there.
Also, on all workstations change DBE configuration NET DIR='net_path\netdir'.

Isak
0
 

Expert Comment

by:Alfaisal
ID: 2821669
Listening.....
0
 

Author Comment

by:WoodyJ3
ID: 2825933
Im not using cached updates and my Net file is in the root of the share, with the data a folder below.

The comment made by Portal is interesting though.  I'll check that one out.

I'm getting the feeling that Paradox was invented solely to p**s me off.

I'll let you all know.

Cheers
Woody.
0
 

Author Comment

by:WoodyJ3
ID: 2833102
err... well...  I'm still investigating the problem with no luck so far.  I've still got a few possible ideas to fix it so I'll let you all know sometime during the week.

ta
Woody.
0
 

Author Comment

by:WoodyJ3
ID: 2911208
Comment accepted as answer
0
 

Author Comment

by:WoodyJ3
ID: 2911209
I tried it and it doesn't crop up as much as it used to so it's a bit better.

I've had enough of the bloody crap database so I'm half way through upgrading to SQL.

Many Thanks
Woody.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Working this component WebCopy with proxy, help 3 76
Internet Explorer View Settings Question 15 106
Help on project with Soap 10 48
can't find the executable in Simulator 1 80
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now